瀏覽代碼

Check for directory

Bob Mottram 8 年之前
父節點
當前提交
26fb6bd604
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      src/freedombone-app-ghost

+ 4
- 0
src/freedombone-app-ghost 查看文件

@@ -151,6 +151,10 @@ function reconfigure_ghost {
151 151
 }
152 152
 
153 153
 function upgrade_ghost {
154
+    if [ ! -d /var/www/$GHOST_DOMAIN_NAME/htdocs ]; then
155
+        return
156
+    fi
157
+
154 158
     if ! grep -q "ghost version:" $COMPLETION_FILE; then
155 159
         CURR_GHOST_VERSION=${GHOST_VERSION}b
156 160
     else