Skip to content

Commit

Permalink
fix: replace chown usage to speed up startup
Browse files Browse the repository at this point in the history
  • Loading branch information
oae committed Dec 10, 2022
1 parent d4786d2 commit 4d68ae9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docker/root/etc/cont-init.d/40-config
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ mkdir -p /config/.config
cp -r /mangal /config/.config

# permissions
chown -R abc:abc \
/app \
/config \
/logs \
/data
# chown -R abc:abc \
# /app \
# /config \
# /logs \
# /data

find /app -not -group abc -not -user abc -print0 | xargs -P 0 -0 --no-run-if-empty chown --no-dereference abc:abc
find /config -not -group abc -not -user abc -print0 | xargs -P 0 -0 --no-run-if-empty chown --no-dereference abc:abc
find /logs -not -group abc -not -user abc -print0 | xargs -P 0 -0 --no-run-if-empty chown --no-dereference abc:abc
find /data -not -group abc -not -user abc -print0 | xargs -P 0 -0 --no-run-if-empty chown --no-dereference abc:abc

0 comments on commit 4d68ae9

Please sign in to comment.