From 3fd8918e31693466951eefbe2cbc219352a0ed5d Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Wed, 25 Sep 2013 00:25:03 +0300 Subject: [PATCH] even more lighter backup procedure --- install/vst-install.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/install/vst-install.sh b/install/vst-install.sh index 605ce269..37b21db8 100644 --- a/install/vst-install.sh +++ b/install/vst-install.sh @@ -306,19 +306,13 @@ fi # Backup nginx service nginx stop > /dev/null 2>&1 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 # Backup httpd service httpd stop > /dev/null 2>&1 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 # Backup bind