Restoring legacy blog

This commit is contained in:
Bob Mottram 2016-10-17 17:07:55 +01:00
parent 4e90ad8135
commit fbf6854879
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ 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
rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
cp -r $temp_restore_dir/var/www/${HTMLY_DOMAIN_NAME}/htdocs /var/www/${HTMLY_DOMAIN_NAME}/