File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -527,7 +527,8 @@ if [ "$PUID" != "0" ]; then
527527 /run \
528528 /tmp \
529529 -not \( -uid " $PUID " -and -gid " $PGID " \) \
530- -exec chown " $PUID :$PGID " {} \;
530+ -print0 \
531+ | xargs -0 -P " $(( $(nproc)* 4 )) " -n 50 chown " $PUID :$PGID "
531532 chown " $PUID :$PGID " /proc/self/fd/2
532533 if [ " $PHP83 " = " true" ]; then
533534 sed -i " s|;\?user =.*|;user = root|" /data/php/83/php-fpm.d/www.conf
@@ -543,7 +544,7 @@ if [ "$PUID" != "0" ]; then
543544 fi
544545 exec su-exec " $PUID :$PGID " launch.sh
545546else
546- find /data -not \( -uid 0 -and -gid 0 \) -exec chown 0:0 {} \;
547+ find /data -not \( -uid 0 -and -gid 0 \) -print0 | xargs -0 -P " $(( $(nproc) * 4 )) " -n 50 chown 0:0
547548 if [ " $PHP83 " = " true" ]; then
548549 sed -i " s|;user =.*|user = root|" /data/php/83/php-fpm.d/www.conf
549550 sed -i " s|;group =.*|group = root|" /data/php/83/php-fpm.d/www.conf
You can’t perform that action at this time.
0 commit comments