mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 13:38:13 -05:00
move from sudo to exec setpriv (#2600)
This commit is contained in:
parent
41d1e48823
commit
ae647bbf44
@ -214,7 +214,6 @@ RUN apt-get update && apt-get install -y \
|
|||||||
supervisor \
|
supervisor \
|
||||||
tzdata \
|
tzdata \
|
||||||
unzip \
|
unzip \
|
||||||
sudo \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Create required directories
|
# Create required directories
|
||||||
|
@ -99,4 +99,4 @@ chown -R $PUID:$PGID \
|
|||||||
/var/run/nginx \
|
/var/run/nginx \
|
||||||
/run
|
/run
|
||||||
|
|
||||||
sudo -E -u \#$PUID /usr/bin/supervisord
|
exec setpriv --reuid=$PUID --regid=$PGID --init-groups /usr/bin/supervisord
|
Loading…
x
Reference in New Issue
Block a user