mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-02 15:33:32 +00:00
use su-exec
This commit is contained in:
@@ -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 && \
|
||||
|
@@ -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 \
|
||||
|
Reference in New Issue
Block a user