diff --git a/util/MsSql/entrypoint.sh b/util/MsSql/entrypoint.sh index 69d98e328d..cf490c01b1 100644 --- a/util/MsSql/entrypoint.sh +++ b/util/MsSql/entrypoint.sh @@ -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 - exec gosu $USERNAME:$GROUPNAME /bin/sh -c "/backup-db.sh loop >/dev/null 2>&1 &" + gosu $USERNAME:$GROUPNAME /bin/sh -c "/backup-db.sh loop >/dev/null 2>&1 &" fi exec gosu $USERNAME:$GROUPNAME /opt/mssql/bin/sqlservr diff --git a/util/Nginx/entrypoint.sh b/util/Nginx/entrypoint.sh index 8dde9c5ef1..6bd4aaa495 100644 --- a/util/Nginx/entrypoint.sh +++ b/util/Nginx/entrypoint.sh @@ -42,6 +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 -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;'