Skip to content

Commit

Permalink
Merge pull request #353 from DDS-Derek/s6-config-v3
Browse files Browse the repository at this point in the history
feat: upgrade docker S6 config to v3
  • Loading branch information
zthxxx committed Jul 3, 2023
2 parents 403c426 + d7ecc82 commit 6acf69a
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 27 deletions.
14 changes: 0 additions & 14 deletions docker/etc/cont-init.d/010-old-compatible

This file was deleted.

13 changes: 0 additions & 13 deletions docker/etc/cont-init.d/020-fixuser

This file was deleted.

Empty file.
7 changes: 7 additions & 0 deletions docker/etc/s6-overlay/s6-rc.d/init-fixuser/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

groupmod -o -g "${PGID}" ab
usermod -o -u "${PUID}" ab

chown ab:ab -R /app /ab
1 change: 1 addition & 0 deletions docker/etc/s6-overlay/s6-rc.d/init-fixuser/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
1 change: 1 addition & 0 deletions docker/etc/s6-overlay/s6-rc.d/init-fixuser/up
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-fixuser/run
8 changes: 8 additions & 0 deletions docker/etc/s6-overlay/s6-rc.d/init-old-compatible/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

umask ${UMASK}

if [ -f /config/bangumi.json ]; then
mv /config/bangumi.json /app/data/bangumi.json
fi
1 change: 1 addition & 0 deletions docker/etc/s6-overlay/s6-rc.d/init-old-compatible/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
1 change: 1 addition & 0 deletions docker/etc/s6-overlay/s6-rc.d/init-old-compatible/up
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-old-compatible/run
Empty file.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions docker/etc/s6-overlay/s6-rc.d/svc-autobangumi/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
longrun
Empty file.
Empty file.
Empty file.

0 comments on commit 6acf69a

Please sign in to comment.