use su-exec

This commit is contained in:
Zoey
2024-03-12 17:40:42 +01:00
parent 9d81b8aaa7
commit 61164eee6c
2 changed files with 2 additions and 2 deletions

View File

@@ -891,7 +891,7 @@ if [ "$PUID" != "0" ]; then
sed -i "s|group =.*|;group = root|" /data/php/83/php-fpm.d/www.conf
fi
sed -i "s|user root;|#user root;|g" /usr/local/nginx/conf/nginx.conf
exec sudo -Eu npm launch.sh
exec su-exec "$PUID:$PGID" launch.sh
else
find /usr/local \
/data \