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 \
|
nodejs-current \
|
||||||
openssl apache2-utils \
|
openssl apache2-utils \
|
||||||
lua5.1-lzlib lua5.1-socket \
|
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 && \
|
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 && \
|
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 && \
|
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
|
sed -i "s|group =.*|;group = root|" /data/php/83/php-fpm.d/www.conf
|
||||||
fi
|
fi
|
||||||
sed -i "s|user root;|#user root;|g" /usr/local/nginx/conf/nginx.conf
|
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
|
else
|
||||||
find /usr/local \
|
find /usr/local \
|
||||||
/data \
|
/data \
|
||||||
|
Reference in New Issue
Block a user