From 8b5e37d349091c205d0c972f3c3ffd737c12e705 Mon Sep 17 00:00:00 2001 From: Mart124 <37041094+Mart124@users.noreply.github.com> Date: Mon, 25 Nov 2019 16:08:14 +0100 Subject: [PATCH 1/2] Update .dockerignore (#612) --- util/Nginx/.dockerignore | 1 + 1 file changed, 1 insertion(+) diff --git a/util/Nginx/.dockerignore b/util/Nginx/.dockerignore index 9902fee8a1..62b43aced7 100644 --- a/util/Nginx/.dockerignore +++ b/util/Nginx/.dockerignore @@ -5,3 +5,4 @@ !security-headers.conf !security-headers-ssl.conf !mime.types +!logrotate.sh From 9bb6476f53933a75555d192214ff495d736d3871 Mon Sep 17 00:00:00 2001 From: Mart124 <37041094+Mart124@users.noreply.github.com> Date: Mon, 25 Nov 2019 16:36:06 +0100 Subject: [PATCH 2/2] Typo (#613) * Update logrotate.sh * Update backup-db.sh --- util/MsSql/backup-db.sh | 2 +- util/Nginx/logrotate.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/MsSql/backup-db.sh b/util/MsSql/backup-db.sh index 4bec552258..0516c29b32 100644 --- a/util/MsSql/backup-db.sh +++ b/util/MsSql/backup-db.sh @@ -3,7 +3,7 @@ while true do # Sleep until next day - [ "$1" == "loop" ] && sleep $((24 * 3600 - (`date +%H` * 3600 + `date +%M` * 60 + `date +%S`))) + [ "$1" = "loop" ] && sleep $((24 * 3600 - (`date +%H` * 3600 + `date +%M` * 60 + `date +%S`))) # Backup timestamp export now=$(date +%Y%m%d_%H%M%S) diff --git a/util/Nginx/logrotate.sh b/util/Nginx/logrotate.sh index 535f708915..49976614ad 100644 --- a/util/Nginx/logrotate.sh +++ b/util/Nginx/logrotate.sh @@ -2,7 +2,7 @@ while true do - [ "$1" == "loop" ] && sleep $((24 * 3600 - (`date +%H` * 3600 + `date +%M` * 60 + `date +%S`))) + [ "$1" = "loop" ] && sleep $((24 * 3600 - (`date +%H` * 3600 + `date +%M` * 60 + `date +%S`))) ts=$(date +%Y%m%d_%H%M%S) mv /var/log/nginx/access.log /var/log/nginx/access.$ts.log mv /var/log/nginx/error.log /var/log/nginx/error.$ts.log