Browse Source

Don't remove ghost files on failure

Bob Mottram 8 years ago
parent
commit
fea7b3a2c4
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      src/freedombone-app-ghost

+ 0
- 2
src/freedombone-app-ghost View File

169
     wget ${GHOST_DOWNLOAD_URL}
169
     wget ${GHOST_DOWNLOAD_URL}
170
     if [ ! -f ghost-${GHOST_VERSION}.zip ]; then
170
     if [ ! -f ghost-${GHOST_VERSION}.zip ]; then
171
         echo $'Unable to download ghost'
171
         echo $'Unable to download ghost'
172
-        rm -rf /var/www/$GHOST_DOMAIN_NAME
173
         exit 367245
172
         exit 367245
174
     fi
173
     fi
175
 
174
 
183
     unzip ghost-${GHOST_VERSION}.zip
182
     unzip ghost-${GHOST_VERSION}.zip
184
     if [ ! -f $GHOST_PATH/index.js ]; then
183
     if [ ! -f $GHOST_PATH/index.js ]; then
185
         echo $'ghost failed to unzip'
184
         echo $'ghost failed to unzip'
186
-        rm -rf /var/www/$GHOST_DOMAIN_NAME
187
         exit 63835
185
         exit 63835
188
     fi
186
     fi
189
 
187