ソースを参照

Check if blog directory exists within backup

Bob Mottram 8 年 前
コミット
59b3cf03ab
共有1 個のファイルを変更した5 個の追加2 個の削除を含む
  1. 5
    2
      src/freedombone-app-htmly

+ 5
- 2
src/freedombone-app-htmly ファイルの表示

@@ -226,8 +226,11 @@ function restore_local_htmly {
226 226
     if [ $HTMLY_DOMAIN_NAME ]; then
227 227
         echo $"Restoring htmly installation"
228 228
         temp_restore_dir=/root/temphtmly
229
-        restore_directory_from_usb $temp_restore_dir blog
230
-        restore_directory_from_usb $temp_restore_dir htmly
229
+        if [ -d $USB_MOUNT/backup/blog ]; then
230
+            restore_directory_from_usb $temp_restore_dir blog
231
+        else
232
+            restore_directory_from_usb $temp_restore_dir htmly
233
+        fi
231 234
         if [ -d /var/www/${HTMLY_DOMAIN_NAME}/htdocs ]; then
232 235
             rm -rf /var/www/${HTMLY_DOMAIN_NAME}/htdocs
233 236
         fi