Skip to content

Commit 71ecf84

Browse files
committed
Update args
1 parent 80c9abe commit 71ecf84

File tree

4 files changed

+11
-17
lines changed

4 files changed

+11
-17
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ services:
9494
- PGID=1000
9595
- TZ=Etc/UTC
9696
- KOMETA_CONFIG=/config/config.yml #optional
97-
- KOMETA_TIME=03:00 #optional
97+
- KOMETA_TIMES=03:00 #optional
9898
- KOMETA_RUN=False #optional
99-
- KOMETA_TEST=False #optional
99+
- KOMETA_TESTS=False #optional
100100
- KOMETA_NO_MISSING=False #optional
101101
volumes:
102102
- /path/to/kometa/config:/config
@@ -112,9 +112,9 @@ docker run -d \
112112
-e PGID=1000 \
113113
-e TZ=Etc/UTC \
114114
-e KOMETA_CONFIG=/config/config.yml `#optional` \
115-
-e KOMETA_TIME=03:00 `#optional` \
115+
-e KOMETA_TIMES=03:00 `#optional` \
116116
-e KOMETA_RUN=False `#optional` \
117-
-e KOMETA_TEST=False `#optional` \
117+
-e KOMETA_TESTS=False `#optional` \
118118
-e KOMETA_NO_MISSING=False `#optional` \
119119
-v /path/to/kometa/config:/config \
120120
--restart unless-stopped \
@@ -131,9 +131,9 @@ Containers are configured using parameters passed at runtime (such as those abov
131131
| `-e PGID=1000` | for GroupID - see below for explanation |
132132
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
133133
| `-e KOMETA_CONFIG=/config/config.yml` | Specify a custom config file to use. |
134-
| `-e KOMETA_TIME=03:00` | Comma-separated list of times to update each day. Format: `HH:MM`. |
134+
| `-e KOMETA_TIMES=03:00` | Comma-separated list of times to update each day. Format: `HH:MM`. |
135135
| `-e KOMETA_RUN=False` | Set to `True` to run without the scheduler. |
136-
| `-e KOMETA_TEST=False` | Set to `True` to run in debug mode with only collections that have `test: true`. |
136+
| `-e KOMETA_TESTS=False` | Set to `True` to run in debug mode with only collections that have `test: true`. |
137137
| `-e KOMETA_NO_MISSING=False` | Set to `True` to run without any of the missing movie/show functions. |
138138
| `-v /config` | Persistent config files |
139139

readme-vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ param_volumes:
2727
opt_param_usage_include_env: true
2828
opt_param_env_vars:
2929
- {env_var: "KOMETA_CONFIG", env_value: "/config/config.yml", desc: "Specify a custom config file to use."}
30-
- {env_var: "KOMETA_TIME", env_value: "03:00", desc: "Comma-separated list of times to update each day. Format: `HH:MM`."}
30+
- {env_var: "KOMETA_TIMES", env_value: "03:00", desc: "Comma-separated list of times to update each day. Format: `HH:MM`."}
3131
- {env_var: "KOMETA_RUN", env_value: "False", desc: "Set to `True` to run without the scheduler."}
32-
- {env_var: "KOMETA_TEST", env_value: "False", desc: "Set to `True` to run in debug mode with only collections that have `test: true`."}
32+
- {env_var: "KOMETA_TESTS", env_value: "False", desc: "Set to `True` to run in debug mode with only collections that have `test: true`."}
3333
- {env_var: "KOMETA_NO_MISSING", env_value: "False", desc: "Set to `True` to run without any of the missing movie/show functions."}
3434
readonly_supported: false
3535
nonroot_supported: false

root/etc/s6-overlay/s6-rc.d/svc-kometa/run

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,10 @@ if [[ -n "${CONFIG_FILE}" ]] && [[ ! -e "${CONFIG_FILE}" ]]; then
2121
s6-rc -bad change
2222
fi
2323

24-
if { echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--time|-t)([\s])'; } && { echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--config|-c)([\s])(.+\/[^\/]+)\.(yml|yaml)'; }; then
24+
if echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--config|-c)([\s])(.+\/[^\/]+)\.(yml|yaml)'; then
2525
exec \
2626
s6-setuidgid abc python3 /app/kometa/kometa.py "${CLI_OPTIONS[@]}"
27-
elif echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--time|-t)([\s])'; then
28-
exec \
29-
s6-setuidgid abc python3 /app/kometa/kometa.py --config "${CONFIG_FILE}" "${CLI_OPTIONS[@]}"
30-
elif echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--config|-c)([\s])(.+\/[^\/]+)\.(yml|yaml)'; then
31-
exec \
32-
s6-setuidgid abc python3 /app/kometa/kometa.py --time "${KOMETA_TIME:-03:00}" "${CLI_OPTIONS[@]}"
3327
else
3428
exec \
35-
s6-setuidgid abc python3 /app/kometa/kometa.py --config "${CONFIG_FILE}" --time "${KOMETA_TIME:-03:00}" "${CLI_OPTIONS[@]}"
29+
s6-setuidgid abc python3 /app/kometa/kometa.py --config "${CONFIG_FILE}" "${CLI_OPTIONS[@]}"
3630
fi

root/init-hook

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
IFS="|" read -r -a CLI_OPTIONS <<< "$CLI_OPTIONS_STRING"
55

6-
if [[ $(tr "[:upper:]" "[:lower:]" <<<"${KOMETA_RUN}") = "true" ]] || echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--run|--tests|--run-collections|--run-libraries|--run-files|--resume|-r|-ts|-rc|-rl|-rf|-re)([\s]|$)'; then
6+
if [[ $(tr "[:upper:]" "[:lower:]" <<<"${KOMETA_RUN}") = "true" ]] || echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--run|--r|--tests|--ts|--rt|--test|--run-test|--run-tests|--run-collections|--rc|--cl|--collection|--collections|--run-collection|--run-libraries|--rl|--l|--library|--libraries|--run-library|--run-files|--rf|--rm|--m|--run-file|--metadata|--metadata-files|--run-metadata-files|--resume|--re)([\s]|$)'; then
77
rm -rf /etc/s6-overlay/s6-rc.d/svc-kometa
88
rm -rf /etc/s6-overlay/s6-rc.d/user/contents.d/svc-kometa
99
mkdir -p /etc/s6-overlay/s6-rc.d/user2/contents.d/

0 commit comments

Comments
 (0)