mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-07-01 23:58:33 +02:00
Compare commits
6 Commits
9e51ed3707
...
d795a5e4cd
Author | SHA1 | Date | |
---|---|---|---|
d795a5e4cd | |||
d9c9b010a9 | |||
a3e804c80d | |||
dd9d7e1241 | |||
134e538b1f | |||
a2f42d41c2 |
@ -2,8 +2,11 @@ stages:
|
|||||||
- build
|
- build
|
||||||
|
|
||||||
build_job:
|
build_job:
|
||||||
|
|
||||||
stage: build
|
stage: build
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_TITLE == "build"'
|
||||||
script:
|
script:
|
||||||
- echo "Running build pipeline"
|
- curl -X GET https://kestra.sectorq.eu/api/v1/executions/webhook/jaydee/omv_distribute/f851511c32ca9450
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ import paramiko
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
file_path = os.path.realpath(__file__)
|
file_path = os.path.realpath(__file__)
|
||||||
dir_path = os.path.dirname(file_path)
|
dir_path = os.path.dirname(file_path)
|
||||||
VERSION="1.0.3"
|
VERSION="1.0.4"
|
||||||
# print(file_path)
|
# print(file_path)
|
||||||
# print(dir_path)
|
# print(dir_path)
|
||||||
os.chdir(dir_path)
|
os.chdir(dir_path)
|
||||||
@ -369,15 +369,19 @@ if _RESTORE:
|
|||||||
#loaded['logo']['icon'] = "/images/morefine2.png"
|
#loaded['logo']['icon'] = "/images/morefine2.png"
|
||||||
logging.info(json.dumps(loaded, indent=2))
|
logging.info(json.dumps(loaded, indent=2))
|
||||||
i = 0
|
i = 0
|
||||||
|
|
||||||
|
|
||||||
for y in loaded:
|
for y in loaded:
|
||||||
logging.info(i)
|
logging.info(i)
|
||||||
logging.info(y)
|
logging.info(y)
|
||||||
|
|
||||||
if "logo" in y:
|
if "logo" in y:
|
||||||
if host == "rpi5.home.lan":
|
if host == "rpi5.home.lan" or host == "rpi5":
|
||||||
loaded[i]['logo']['icon'] = "/images/rpi5.png"
|
loaded[i]['logo']['icon'] = "/images/rpi5.png"
|
||||||
elif host == "nas.home.lan":
|
elif host == "nas.home.lan":
|
||||||
loaded[i]['logo']['icon'] = "/images/qnap_nas.png"
|
loaded[i]['logo']['icon'] = "/images/qnap_nas.png"
|
||||||
|
elif host == "rack.home.lan":
|
||||||
|
loaded[i]['logo']['icon'] = "/images/rack.png"
|
||||||
else:
|
else:
|
||||||
loaded[i]['logo']['icon'] = "/images/morefine2.png"
|
loaded[i]['logo']['icon'] = "/images/morefine2.png"
|
||||||
i+=1
|
i+=1
|
||||||
|
Reference in New Issue
Block a user