Skip to content
Snippets Groups Projects
Commit 59b3cf03 authored by Bob Mottram's avatar Bob Mottram
Browse files

Check if blog directory exists within backup

parent c2233f59
No related branches found
No related tags found
No related merge requests found
......@@ -226,8 +226,11 @@ function restore_local_htmly {
if [ $HTMLY_DOMAIN_NAME ]; then
echo $"Restoring htmly installation"
temp_restore_dir=/root/temphtmly
restore_directory_from_usb $temp_restore_dir blog
restore_directory_from_usb $temp_restore_dir htmly
if [ -d $USB_MOUNT/backup/blog ]; then
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
rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment