From f757771128c7c9414a35ac2743ff123934a8b211 Mon Sep 17 00:00:00 2001
From: Falko Timme <ft@falkotimme.com>
Date: Fri, 09 Jan 2015 10:39:04 -0500
Subject: [PATCH] - Made sure SQL backups from servers that differ from the server where the website is on can be restored. A download of the backup is not possible in such a case, therefore I hide the "Download" button.

---
 server/scripts/create_daily_nginx_access_logs.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/scripts/create_daily_nginx_access_logs.sh b/server/scripts/create_daily_nginx_access_logs.sh
index 862c70f..ce4945f 100644
--- a/server/scripts/create_daily_nginx_access_logs.sh
+++ b/server/scripts/create_daily_nginx_access_logs.sh
@@ -3,7 +3,7 @@
 FILES=/var/log/ispconfig/httpd/*
 for f in $FILES
 do
-  mv $f/access.log $f/`date "+%Y%m%d"`-access.log &> /dev/null
+  mv $f/access.log $f/`date --date='yesterday' "+%Y%m%d"`-access.log &> /dev/null
   touch $f/access.log &> /dev/null
 done
 pkill -USR1 -u root nginx &> /dev/null
\ No newline at end of file

--
Gitblit v1.9.1