From 125e1d95edf71a6c8ac7b14348dc26eccd2a7a97 Mon Sep 17 00:00:00 2001 From: Alexandre Alouit Date: Tue, 1 Dec 2015 17:57:44 +0100 Subject: bugfix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - backup nginx configuration before patch it - apache/nginx « application/jose+json » to « text/plain » --- install.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'install.php') diff --git a/install.php b/install.php index 58ca699..73d60f9 100644 --- a/install.php +++ b/install.php @@ -112,6 +112,8 @@ if(is_file("/etc/apache2/apache2.conf")) { } if(is_file("/etc/nginx/nginx.conf")) { + echo "Backup Nginx file to " . $backup_dir . ".\n"; + exec("cp /etc/nginx/nginx.conf " . $backup_dir . date("Ymdhis") . "-nginx.conf"; ); echo "Patch Nginx and reload it.\n"; exec("patch /etc/nginx/nginx.conf < ./nginx.conf.patch"); exec("service nginx reload"); -- cgit v1.2.3