From 2cf8b88fbb74a6b3938819d5ade7a45001b10dbd Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 25 Nov 2019 09:25:11 -0500 Subject: [PATCH] dont exec --- util/MsSql/entrypoint.sh | 2 +- util/Nginx/entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;'