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

Commit e58f299

Browse files
authored
Merge pull request #2 from linuxserver/fix-oneshot
Fix oneshot runs
2 parents 5608cb4 + b07e33f commit e58f299

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
echo "#!/usr/bin/with-contenv bash" > /etc/cont-init.d/55-oneshot
11+
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)