aboutsummaryrefslogtreecommitdiffstats
path: root/install.php
diff options
context:
space:
mode:
authorAlexandre Alouit <alexandre.alouit@gmail.com>2015-12-01 17:57:44 +0100
committerAlexandre Alouit <alexandre.alouit@gmail.com>2015-12-01 17:57:44 +0100
commit125e1d95edf71a6c8ac7b14348dc26eccd2a7a97 (patch)
tree516cfd9f7a5020b2e72fbedb8455bb1ee4dac2a7 /install.php
parentcde1917d97281b7e162719de477bf4b65a823491 (diff)
bugfix
- backup nginx configuration before patch it - apache/nginx « application/jose+json » to « text/plain »
Diffstat (limited to '')
-rw-r--r--install.php2
1 files changed, 2 insertions, 0 deletions
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");