Parallelise /var/www chown to speed it up

Should help with machines affected by overlay cow bug
This commit is contained in:
Adam 2021-07-09 19:40:04 +01:00 committed by GitHub
parent 5a4c8ec456
commit 922d6d1fd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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