Skip to content

Commit

Permalink
Add init-fix-permissions for fixing ownership/permission issues
Browse files Browse the repository at this point in the history
  • Loading branch information
xZero707 committed Sep 19, 2023
1 parent 4211369 commit be5b27a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 0 deletions.
Empty file.
12 changes: 12 additions & 0 deletions rootfs/etc/s6-overlay/s6-rc.d/init-fix-permissions/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

# init-fix-permissions main
main() {
# This will prepend service name to all output from here
exec > >(while read line; do echo "[init-fix-permissions] ${line}"; done) 2>&1

lsiown -R abc:abc "${DATADIR}"
lsiown -R abc:abc "/config"
}
main
1 change: 1 addition & 0 deletions rootfs/etc/s6-overlay/s6-rc.d/init-fix-permissions/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
1 change: 1 addition & 0 deletions rootfs/etc/s6-overlay/s6-rc.d/init-fix-permissions/up
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-fix-permissions/run
Empty file.
Empty file.

0 comments on commit be5b27a

Please sign in to comment.