浏览代码

Don't need the replacement

Bob Mottram 8 年前
父节点
当前提交
c56aab5285
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/freedombone-app-htmly

+ 2
- 2
src/freedombone-app-htmly 查看文件

@@ -234,7 +234,7 @@ function restore_local_htmly {
234 234
         if [ -d /var/www/${HTMLY_DOMAIN_NAME}/htdocs ]; then
235 235
             rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
236 236
         fi
237
-        temp_source_dir=$(find ${temp_restore_dir} -name htdocs | sed '0,/RE/s/\.//')
237
+        temp_source_dir=$(find ${temp_restore_dir} -name htdocs)
238 238
         cp -r ${temp_source_dir} /var/www/${HTMLY_DOMAIN_NAME}/
239 239
         if [ ! "$?" = "0" ]; then
240 240
             set_user_permissions
@@ -294,7 +294,7 @@ function restore_remote_htmly {
294 294
         if [ -d /var/www/${HTMLY_DOMAIN_NAME}/htdocs ]; then
295 295
             rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
296 296
         fi
297
-        temp_source_dir=$(find ${temp_restore_dir} -name htdocs | sed '0,/RE/s/\.//')
297
+        temp_source_dir=$(find ${temp_restore_dir} -name htdocs)
298 298
         cp -r ${temp_source_dir} /var/www/${HTMLY_DOMAIN_NAME}/
299 299
         if [ ! "$?" = "0" ]; then
300 300
             exit 593