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

@@ -71,7 +71,7 @@ RUN apk upgrade --no-cache -a && \
nodejs-current \
openssl apache2-utils \
lua5.1-lzlib lua5.1-socket \
coreutils grep findutils jq shadow sudo \
coreutils grep findutils jq shadow su-exec \
luarocks5.1 lua5.1-dev lua5.1-sec build-base git yarn && \
curl https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh | sh -s -- --install-online --home /usr/local/acme.sh --nocron && \
git clone https://github.com/coreruleset/coreruleset --branch "$CRS_VER" /tmp/coreruleset && \

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 \