Kaynağa Gözat

Check for directory

Bob Mottram 8 yıl önce
ebeveyn
işleme
26fb6bd604
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4
    0
      src/freedombone-app-ghost

+ 4
- 0
src/freedombone-app-ghost Dosyayı Görüntüle

@@ -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