Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit 4d68ae9

Browse files
committed
fix: replace chown usage to speed up startup
1 parent d4786d2 commit 4d68ae9

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

docker/root/etc/cont-init.d/40-config

+10-5
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ mkdir -p /config/.config
99
cp -r /mangal /config/.config
1010

1111
# permissions
12-
chown -R abc:abc \
13-
/app \
14-
/config \
15-
/logs \
16-
/data
12+
# chown -R abc:abc \
13+
# /app \
14+
# /config \
15+
# /logs \
16+
# /data
17+
18+
find /app -not -group abc -not -user abc -print0 | xargs -P 0 -0 --no-run-if-empty chown --no-dereference abc:abc
19+
find /config -not -group abc -not -user abc -print0 | xargs -P 0 -0 --no-run-if-empty chown --no-dereference abc:abc
20+
find /logs -not -group abc -not -user abc -print0 | xargs -P 0 -0 --no-run-if-empty chown --no-dereference abc:abc
21+
find /data -not -group abc -not -user abc -print0 | xargs -P 0 -0 --no-run-if-empty chown --no-dereference abc:abc

0 commit comments

Comments
 (0)