parent
9d0574edb7
commit
baacde631f
1 changed files with 2 additions and 2 deletions
|
@ -876,7 +876,7 @@ if [ "$PUID" != "0" ]; then
|
||||||
/data \
|
/data \
|
||||||
/run \
|
/run \
|
||||||
/tmp \
|
/tmp \
|
||||||
-not -user "$PUID" -or -not -group "$PGID" \
|
-not \( -uid "$PUID" -and -gid "$PGID" \) \
|
||||||
-exec chown "$PUID:$PGID" {} \;
|
-exec chown "$PUID:$PGID" {} \;
|
||||||
if [ "$PHP81" = "true" ]; then
|
if [ "$PHP81" = "true" ]; then
|
||||||
sed -i "s|user =.*|;user = root|" /data/php/81/php-fpm.d/www.conf
|
sed -i "s|user =.*|;user = root|" /data/php/81/php-fpm.d/www.conf
|
||||||
|
@ -897,7 +897,7 @@ else
|
||||||
/data \
|
/data \
|
||||||
/run \
|
/run \
|
||||||
/tmp \
|
/tmp \
|
||||||
-not -user 0 -or -not -group 0 \
|
-not \( -uid 0 -and -gid 0 \) \
|
||||||
-exec chown 0:0 {} \;
|
-exec chown 0:0 {} \;
|
||||||
if [ "$PHP81" = "true" ]; then
|
if [ "$PHP81" = "true" ]; then
|
||||||
sed -i "s|;user =.*|user = root|" /data/php/81/php-fpm.d/www.conf
|
sed -i "s|;user =.*|user = root|" /data/php/81/php-fpm.d/www.conf
|
||||||
|
|
Loading…
Reference in a new issue