Преглед изворни кода

even more lighter backup procedure

Serghey Rodin пре 12 година
родитељ
комит
3fd8918e31
1 измењених фајлова са 2 додато и 8 уклоњено
  1. 2 8
      install/vst-install.sh

+ 2 - 8
install/vst-install.sh

@@ -306,19 +306,13 @@ fi
 # Backup nginx
 # Backup nginx
 service nginx stop > /dev/null 2>&1
 service nginx stop > /dev/null 2>&1
 if [ -e '/etc/nginx/nginx.conf' ]; then
 if [ -e '/etc/nginx/nginx.conf' ]; then
-    cp /etc/nginx/* $vst_backups/nginx/
-fi
-if [ -f '/etc/nginx/conf.d' ]; then
-    cp -r /etc/nginx/conf.d $vst_backups/nginx/
+    cp -r /etc/nginx/* $vst_backups/nginx/
 fi
 fi
 
 
 # Backup httpd
 # Backup httpd
 service httpd stop > /dev/null 2>&1
 service httpd stop > /dev/null 2>&1
 if [ -e '/etc/httpd/conf/httpd.conf' ]; then
 if [ -e '/etc/httpd/conf/httpd.conf' ]; then
-    cp /etc/httpd/conf/httpd.conf $vst_backups/httpd/
-fi
-if [ -e '/etc/httpd/conf.d' ]; then
-    cp -r /etc/httpd/conf.d $vst_backups/httpd/
+    cp -r /etc/httpd/* $vst_backups/httpd/
 fi
 fi
 
 
 # Backup bind
 # Backup bind