Skip to content

Commit

Permalink
use su-exec
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoey2936 committed Mar 12, 2024
1 parent 9d81b8a commit 61164ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
2 changes: 1 addition & 1 deletion rootfs/usr/local/bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 61164ee

Please sign in to comment.