1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

exec gosu

This commit is contained in:
Kyle Spearrin 2019-11-25 09:22:42 -05:00
parent 35a5dd95bb
commit 980e19884d
2 changed files with 2 additions and 3 deletions

View File

@ -52,7 +52,7 @@ chown $USERNAME:$GROUPNAME /backup-db.sql
# Launch a loop to backup database on a daily basis # Launch a loop to backup database on a daily basis
if [ "$BACKUP_DB" != "0" ] if [ "$BACKUP_DB" != "0" ]
then then
gosu $USERNAME:$GROUPNAME /bin/sh -c "/backup-db.sh loop >/dev/null 2>&1 &" exec gosu $USERNAME:$GROUPNAME /bin/sh -c "/backup-db.sh loop >/dev/null 2>&1 &"
fi fi
exec gosu $USERNAME:$GROUPNAME /opt/mssql/bin/sqlservr exec gosu $USERNAME:$GROUPNAME /opt/mssql/bin/sqlservr

View File

@ -42,7 +42,6 @@ chown -R $USERNAME:$GROUPNAME /var/cache/nginx
chown -R $USERNAME:$GROUPNAME /var/log/nginx chown -R $USERNAME:$GROUPNAME /var/log/nginx
# Launch a loop to rotate nginx logs on a daily basis # Launch a loop to rotate nginx logs on a daily basis
exec gosu $USERNAME:$GROUPNAME /bin/sh -c "/logrotate.sh loop >/dev/null 2>&1 &"
gosu $USERNAME:$GROUPNAME /bin/sh -c "/logrotate.sh loop >/dev/null 2>&1 &"
exec gosu $USERNAME:$GROUPNAME nginx -g 'daemon off;' exec gosu $USERNAME:$GROUPNAME nginx -g 'daemon off;'