Ver código fonte

Check for directory

Bob Mottram 8 anos atrás
pai
commit
26fb6bd604
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      src/freedombone-app-ghost

+ 4
- 0
src/freedombone-app-ghost Ver arquivo

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