|
@@ -306,16 +306,10 @@ 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/nginx.conf $vst_backups/nginx/
|
|
|
|
|
|
|
+ cp /etc/nginx/* $vst_backups/nginx/
|
|
|
fi
|
|
fi
|
|
|
-if [ -f '/etc/nginx/conf.d/default.conf' ]; then
|
|
|
|
|
- cp /etc/nginx/conf.d/default.conf $vst_backups/nginx/
|
|
|
|
|
-fi
|
|
|
|
|
-if [ -e '/etc/nginx/conf.d/example_ssl.conf' ]; then
|
|
|
|
|
- cp /etc/nginx/conf.d/example_ssl.conf $vst_backups/nginx/
|
|
|
|
|
-fi
|
|
|
|
|
-if [ -e '/etc/nginx/conf.d/vesta_ip.conf' ]; then
|
|
|
|
|
- mv /etc/nginx/conf.d/vesta_ip.conf $vst_backups/nginx
|
|
|
|
|
|
|
+if [ -f '/etc/nginx/conf.d' ]; then
|
|
|
|
|
+ cp -r /etc/nginx/conf.d $vst_backups/nginx/
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
# Backup httpd
|
|
# Backup httpd
|
|
@@ -323,11 +317,8 @@ 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/
|
|
cp /etc/httpd/conf/httpd.conf $vst_backups/httpd/
|
|
|
fi
|
|
fi
|
|
|
-if [ -e '/etc/httpd/conf.d/ssl.conf' ]; then
|
|
|
|
|
- cp /etc/httpd/conf.d/ssl.conf $vst_backups/httpd/
|
|
|
|
|
-fi
|
|
|
|
|
-if [ -e '/etc/httpd/conf.d/proxy_ajp.conf' ]; then
|
|
|
|
|
- cp /etc/httpd/conf.d/proxy_ajp.conf $vst_backups/httpd/
|
|
|
|
|
|
|
+if [ -e '/etc/httpd/conf.d' ]; then
|
|
|
|
|
+ cp -r /etc/httpd/conf.d $vst_backups/httpd/
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
# Backup bind
|
|
# Backup bind
|
|
@@ -398,6 +389,7 @@ if [ -e '/home/admin/conf/' ]; then
|
|
|
mv /home/admin/conf/ $vst_backups/vesta/admin
|
|
mv /home/admin/conf/ $vst_backups/vesta/admin
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
+
|
|
|
#----------------------------------------------------------#
|
|
#----------------------------------------------------------#
|
|
|
# Install packages #
|
|
# Install packages #
|
|
|
#----------------------------------------------------------#
|
|
#----------------------------------------------------------#
|