From c56aab52856294847c33c81c1376be23e0bbf936 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Sat, 29 Oct 2016 17:07:18 +0100
Subject: [PATCH] Don't need the replacement

---
 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 8adf9dbcd..4d1fda3bd 100755
--- a/src/freedombone-app-htmly
+++ b/src/freedombone-app-htmly
@@ -234,7 +234,7 @@ function restore_local_htmly {
         if [ -d /var/www/${HTMLY_DOMAIN_NAME}/htdocs ]; then
             rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
         fi
-        temp_source_dir=$(find ${temp_restore_dir} -name htdocs | sed '0,/RE/s/\.//')
+        temp_source_dir=$(find ${temp_restore_dir} -name htdocs)
         cp -r ${temp_source_dir} /var/www/${HTMLY_DOMAIN_NAME}/
         if [ ! "$?" = "0" ]; then
             set_user_permissions
@@ -294,7 +294,7 @@ function restore_remote_htmly {
         if [ -d /var/www/${HTMLY_DOMAIN_NAME}/htdocs ]; then
             rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
         fi
-        temp_source_dir=$(find ${temp_restore_dir} -name htdocs | sed '0,/RE/s/\.//')
+        temp_source_dir=$(find ${temp_restore_dir} -name htdocs)
         cp -r ${temp_source_dir} /var/www/${HTMLY_DOMAIN_NAME}/
         if [ ! "$?" = "0" ]; then
             exit 593
-- 
GitLab