Skip to content

Commit 3fd8918

Browse files
committed
even more lighter backup procedure
1 parent 2280bd5 commit 3fd8918

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

install/vst-install.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -306,19 +306,13 @@ fi
306306
# Backup nginx
307307
service nginx stop > /dev/null 2>&1
308308
if [ -e '/etc/nginx/nginx.conf' ]; then
309-
cp /etc/nginx/* $vst_backups/nginx/
310-
fi
311-
if [ -f '/etc/nginx/conf.d' ]; then
312-
cp -r /etc/nginx/conf.d $vst_backups/nginx/
309+
cp -r /etc/nginx/* $vst_backups/nginx/
313310
fi
314311

315312
# Backup httpd
316313
service httpd stop > /dev/null 2>&1
317314
if [ -e '/etc/httpd/conf/httpd.conf' ]; then
318-
cp /etc/httpd/conf/httpd.conf $vst_backups/httpd/
319-
fi
320-
if [ -e '/etc/httpd/conf.d' ]; then
321-
cp -r /etc/httpd/conf.d $vst_backups/httpd/
315+
cp -r /etc/httpd/* $vst_backups/httpd/
322316
fi
323317

324318
# Backup bind

0 commit comments

Comments
 (0)