mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2025-04-13 21:40:25 +02:00
fix: use xargs to speed up chown during init
This commit is contained in:
parent
9ca15d0f9d
commit
86f7517846
@ -23,7 +23,7 @@ fi
|
||||
cp /root/.profile /config/.profile
|
||||
|
||||
# fix permissions (ignore contents of /config/workspace)
|
||||
find /config -path /config/workspace -prune -o -exec chown abc:abc {} +
|
||||
find /config -path /config/workspace -prune -o -print0 | xargs -0 -n 1000 -P $(nproc) chown abc:abc
|
||||
chown abc:abc /config/workspace
|
||||
chmod 700 /config/.ssh
|
||||
if [ -n "$(ls -A /config/.ssh)" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user