1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-27 17:47:37 +01:00

Merge branch 'master' of github.com:bitwarden/server

This commit is contained in:
Kyle Spearrin 2019-11-25 10:59:17 -05:00
commit a838524fc9
3 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -5,3 +5,4 @@
!security-headers.conf
!security-headers-ssl.conf
!mime.types
!logrotate.sh

View File

@ -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