|
306 | 306 | # Backup nginx |
307 | 307 | service nginx stop > /dev/null 2>&1 |
308 | 308 | if [ -e '/etc/nginx/nginx.conf' ]; then |
309 | | - cp /etc/nginx/nginx.conf $vst_backups/nginx/ |
| 309 | + cp /etc/nginx/* $vst_backups/nginx/ |
310 | 310 | fi |
311 | | -if [ -f '/etc/nginx/conf.d/default.conf' ]; then |
312 | | - cp /etc/nginx/conf.d/default.conf $vst_backups/nginx/ |
313 | | -fi |
314 | | -if [ -e '/etc/nginx/conf.d/example_ssl.conf' ]; then |
315 | | - cp /etc/nginx/conf.d/example_ssl.conf $vst_backups/nginx/ |
316 | | -fi |
317 | | -if [ -e '/etc/nginx/conf.d/vesta_ip.conf' ]; then |
318 | | - mv /etc/nginx/conf.d/vesta_ip.conf $vst_backups/nginx |
| 311 | +if [ -f '/etc/nginx/conf.d' ]; then |
| 312 | + cp -r /etc/nginx/conf.d $vst_backups/nginx/ |
319 | 313 | fi |
320 | 314 |
|
321 | 315 | # Backup httpd |
322 | 316 | service httpd stop > /dev/null 2>&1 |
323 | 317 | if [ -e '/etc/httpd/conf/httpd.conf' ]; then |
324 | 318 | cp /etc/httpd/conf/httpd.conf $vst_backups/httpd/ |
325 | 319 | fi |
326 | | -if [ -e '/etc/httpd/conf.d/ssl.conf' ]; then |
327 | | - cp /etc/httpd/conf.d/ssl.conf $vst_backups/httpd/ |
328 | | -fi |
329 | | -if [ -e '/etc/httpd/conf.d/proxy_ajp.conf' ]; then |
330 | | - cp /etc/httpd/conf.d/proxy_ajp.conf $vst_backups/httpd/ |
| 320 | +if [ -e '/etc/httpd/conf.d' ]; then |
| 321 | + cp -r /etc/httpd/conf.d $vst_backups/httpd/ |
331 | 322 | fi |
332 | 323 |
|
333 | 324 | # Backup bind |
@@ -398,6 +389,7 @@ if [ -e '/home/admin/conf/' ]; then |
398 | 389 | mv /home/admin/conf/ $vst_backups/vesta/admin |
399 | 390 | fi |
400 | 391 |
|
| 392 | + |
401 | 393 | #----------------------------------------------------------# |
402 | 394 | # Install packages # |
403 | 395 | #----------------------------------------------------------# |
|
0 commit comments