Skip to content
This repository was archived by the owner on Apr 28, 2024. It is now read-only.

Commit 4f05052

Browse files
committed
another attempt
1 parent 02045c7 commit 4f05052

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

root/etc/cont-init.d/50-config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ php artisan optimize
3131
crontab -u abc /defaults/crontabs/abc
3232

3333
# permissions
34-
# permissions
34+
CORES=$(nproc --all)
3535
find \
36-
/config \
3736
/app/invoiceninja \
38-
! -user abc -o ! -group abc -exec chown abc:abc {} \;
37+
! -user abc ! -group abc -print0 | \
38+
xargs -P $((CORES*2*16)) -I {} chown abc:abc {}
3939

4040
find /config ! -perm -g+w -exec chmod g+w {} \;

0 commit comments

Comments
 (0)