From 6763125aa967221b583067a45681c4d64f636812 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Sat, 29 Oct 2016 16:32:09 +0100
Subject: [PATCH] Blog restore directory

---
 src/freedombone-app-htmly | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/freedombone-app-htmly b/src/freedombone-app-htmly
index 612101318..502c53063 100755
--- a/src/freedombone-app-htmly
+++ b/src/freedombone-app-htmly
@@ -235,7 +235,7 @@ function restore_local_htmly {
             rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
         fi
         temp_source_dir=$(find ${temp_restore_dir} -name htdocs | sed 's/\.//g')
-        cp -r ${temp_restore_dir}${temp_source_dir} /var/www/${HTMLY_DOMAIN_NAME}/
+        cp -r ${temp_source_dir} /var/www/${HTMLY_DOMAIN_NAME}/
         if [ ! "$?" = "0" ]; then
             set_user_permissions
             backup_unmount_drive
@@ -295,7 +295,7 @@ function restore_remote_htmly {
             rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
         fi
         temp_source_dir=$(find ${temp_restore_dir} -name htdocs | sed 's/\.//g')
-        cp -r ${temp_restore_dir}${temp_source_dir} /var/www/${HTMLY_DOMAIN_NAME}/
+        cp -r ${temp_source_dir} /var/www/${HTMLY_DOMAIN_NAME}/
         if [ ! "$?" = "0" ]; then
             exit 593
         fi
-- 
GitLab