Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.

Commit 11a58f4

Browse files
committed
Fix main filename, copy config template on start
1 parent 6c5aaf9 commit 11a58f4

File tree

3 files changed

+10
-8
lines changed
  • root/etc/s6-overlay/s6-rc.d
    • init-pmm-config
    • init-pmm-oneshot
    • svc-pmm

3 files changed

+10
-8
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

4+
cp /app/pmm/config/config.yml.template /config
5+
46
# permissions
57
lsiown -R abc:abc \
68
/config

root/etc/s6-overlay/s6-rc.d/init-pmm-oneshot/run

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ if [[ -n "${CONFIG_FILE}" ]] && [[ ! -e "${CONFIG_FILE}" ]]; then
2323
fi
2424

2525
if { echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--run|-r)([\s]|$)'; } && { echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--config|-c)([\s])(.+\/[^\/]+)\.(yml|yaml)'; }; then
26-
s6-setuidgid abc python3 /app/pmm/plex_meta_manager.py "${CLI_OPTIONS[@]}"
26+
s6-setuidgid abc python3 /app/pmm/kometa.py "${CLI_OPTIONS[@]}"
2727
elif echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--run|-r)([\s]|$)'; then
28-
s6-setuidgid abc python3 /app/pmm/plex_meta_manager.py --config "${CONFIG_FILE}" "${CLI_OPTIONS[@]}"
28+
s6-setuidgid abc python3 /app/pmm/kometa.py --config "${CONFIG_FILE}" "${CLI_OPTIONS[@]}"
2929
elif echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--config|-c)([\s])(.+\/[^\/]+)\.(yml|yaml)'; then
30-
s6-setuidgid abc python3 /app/pmm/plex_meta_manager.py --run "${CLI_OPTIONS[@]}"
30+
s6-setuidgid abc python3 /app/pmm/kometa.py --run "${CLI_OPTIONS[@]}"
3131
else
32-
s6-setuidgid abc python3 /app/pmm/plex_meta_manager.py --run --config "${CONFIG_FILE}" "${CLI_OPTIONS[@]}"
32+
s6-setuidgid abc python3 /app/pmm/kometa.py --run --config "${CONFIG_FILE}" "${CLI_OPTIONS[@]}"
3333
fi

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ fi
2323

2424
if { echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--time|-t)([\s])'; } && { echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--config|-c)([\s])(.+\/[^\/]+)\.(yml|yaml)'; }; then
2525
exec \
26-
s6-setuidgid abc python3 /app/pmm/plex_meta_manager.py "${CLI_OPTIONS[@]}"
26+
s6-setuidgid abc python3 /app/pmm/kometa.py "${CLI_OPTIONS[@]}"
2727
elif echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--time|-t)([\s])'; then
2828
exec \
29-
s6-setuidgid abc python3 /app/pmm/plex_meta_manager.py --config "${CONFIG_FILE}" "${CLI_OPTIONS[@]}"
29+
s6-setuidgid abc python3 /app/pmm/kometa.py --config "${CONFIG_FILE}" "${CLI_OPTIONS[@]}"
3030
elif echo "${CLI_OPTIONS[@]}" | grep -qPo '([\s]|^)(--config|-c)([\s])(.+\/[^\/]+)\.(yml|yaml)'; then
3131
exec \
32-
s6-setuidgid abc python3 /app/pmm/plex_meta_manager.py --time "${PMM_TIME:-03:00}" "${CLI_OPTIONS[@]}"
32+
s6-setuidgid abc python3 /app/pmm/kometa.py --time "${PMM_TIME:-03:00}" "${CLI_OPTIONS[@]}"
3333
else
3434
exec \
35-
s6-setuidgid abc python3 /app/pmm/plex_meta_manager.py --config "${CONFIG_FILE}" --time "${PMM_TIME:-03:00}" "${CLI_OPTIONS[@]}"
35+
s6-setuidgid abc python3 /app/pmm/kometa.py --config "${CONFIG_FILE}" --time "${PMM_TIME:-03:00}" "${CLI_OPTIONS[@]}"
3636
fi

0 commit comments

Comments
 (0)