mirror of
https://github.com/linuxserver/docker-bookstack.git
synced 2026-02-20 02:30:30 +08:00
Parallelise /var/www chown to speed it up
Should help with machines affected by overlay cow bug
This commit is contained in:
parent
5a4c8ec456
commit
922d6d1fd7
@ -105,8 +105,10 @@ fi
|
||||
|
||||
# set permissions
|
||||
chown -R abc:abc \
|
||||
/config \
|
||||
/var/www/
|
||||
/config
|
||||
|
||||
find /var/www -print0 | xargs -P "$(nproc)" -I {} -0 chown -h abc:abc {}
|
||||
find /var/www -print0 -type d | xargs -P "$(nproc)" -I {} -0 chown -h abc:abc {}
|
||||
|
||||
# set lockfile to avoid DB waits for this specific container
|
||||
touch /dbwait.lock
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user