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:
commit
a838524fc9
@ -3,7 +3,7 @@
|
|||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
# Sleep until next day
|
# 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
|
# Backup timestamp
|
||||||
export now=$(date +%Y%m%d_%H%M%S)
|
export now=$(date +%Y%m%d_%H%M%S)
|
||||||
|
@ -5,3 +5,4 @@
|
|||||||
!security-headers.conf
|
!security-headers.conf
|
||||||
!security-headers-ssl.conf
|
!security-headers-ssl.conf
|
||||||
!mime.types
|
!mime.types
|
||||||
|
!logrotate.sh
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
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)
|
ts=$(date +%Y%m%d_%H%M%S)
|
||||||
mv /var/log/nginx/access.log /var/log/nginx/access.$ts.log
|
mv /var/log/nginx/access.log /var/log/nginx/access.$ts.log
|
||||||
mv /var/log/nginx/error.log /var/log/nginx/error.$ts.log
|
mv /var/log/nginx/error.log /var/log/nginx/error.$ts.log
|
||||||
|
Loading…
Reference in New Issue
Block a user