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

Commit 1adb46d

Browse files
committed
Fix oneshot runs
1 parent 5608cb4 commit 1adb46d

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

root/etc/cont-init.d/20-config

Lines changed: 0 additions & 5 deletions
This file was deleted.

root/etc/cont-init.d/50-config

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
# permissions
4+
chown -R abc:abc \
5+
/config
6+
7+
if [[ $PMM_RUN = "True" ]]; then
8+
touch /etc/services.d/plex-meta-manager/down
9+
else
10+
rm /etc/cont-init.d/55-oneshot
11+
echo "#!/usr/bin/with-contenv bash" > /etc/cont-init.d/55-oneshot
12+
chmod +x /etc/cont-init.d/55-oneshot
13+
fi

root/etc/cont-init.d/55-oneshot

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
s6-setuidgid abc python3 /app/pmm/plex_meta_manager.py --config "${PMM_CONFIG:-/config/config.yml}" --run
4+
5+
exec \
6+
s6-svscanctl -t /var/run/s6/services

0 commit comments

Comments
 (0)