Check if blog directory exists within backup
This commit is contained in:
parent
c2233f5939
commit
59b3cf03ab
|
@ -226,8 +226,11 @@ function restore_local_htmly {
|
||||||
if [ $HTMLY_DOMAIN_NAME ]; then
|
if [ $HTMLY_DOMAIN_NAME ]; then
|
||||||
echo $"Restoring htmly installation"
|
echo $"Restoring htmly installation"
|
||||||
temp_restore_dir=/root/temphtmly
|
temp_restore_dir=/root/temphtmly
|
||||||
restore_directory_from_usb $temp_restore_dir blog
|
if [ -d $USB_MOUNT/backup/blog ]; then
|
||||||
restore_directory_from_usb $temp_restore_dir htmly
|
restore_directory_from_usb $temp_restore_dir blog
|
||||||
|
else
|
||||||
|
restore_directory_from_usb $temp_restore_dir htmly
|
||||||
|
fi
|
||||||
if [ -d /var/www/${HTMLY_DOMAIN_NAME}/htdocs ]; then
|
if [ -d /var/www/${HTMLY_DOMAIN_NAME}/htdocs ]; then
|
||||||
rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
|
rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue