mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
exec gosu
This commit is contained in:
parent
35a5dd95bb
commit
980e19884d
@ -52,7 +52,7 @@ chown $USERNAME:$GROUPNAME /backup-db.sql
|
||||
# Launch a loop to backup database on a daily basis
|
||||
if [ "$BACKUP_DB" != "0" ]
|
||||
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
|
||||
|
||||
exec gosu $USERNAME:$GROUPNAME /opt/mssql/bin/sqlservr
|
||||
|
@ -42,7 +42,6 @@ chown -R $USERNAME:$GROUPNAME /var/cache/nginx
|
||||
chown -R $USERNAME:$GROUPNAME /var/log/nginx
|
||||
|
||||
# Launch a loop to rotate nginx logs on a daily basis
|
||||
|
||||
gosu $USERNAME:$GROUPNAME /bin/sh -c "/logrotate.sh loop >/dev/null 2>&1 &"
|
||||
exec gosu $USERNAME:$GROUPNAME /bin/sh -c "/logrotate.sh loop >/dev/null 2>&1 &"
|
||||
|
||||
exec gosu $USERNAME:$GROUPNAME nginx -g 'daemon off;'
|
||||
|
Loading…
Reference in New Issue
Block a user