Don't remove ghost files on failure

This commit is contained in:
Bob Mottram 2017-05-11 22:57:01 +01:00
parent add4b3464c
commit fea7b3a2c4
1 changed files with 0 additions and 2 deletions

View File

@ -169,7 +169,6 @@ function upgrade_ghost {
wget ${GHOST_DOWNLOAD_URL}
if [ ! -f ghost-${GHOST_VERSION}.zip ]; then
echo $'Unable to download ghost'
rm -rf /var/www/$GHOST_DOMAIN_NAME
exit 367245
fi
@ -183,7 +182,6 @@ function upgrade_ghost {
unzip ghost-${GHOST_VERSION}.zip
if [ ! -f $GHOST_PATH/index.js ]; then
echo $'ghost failed to unzip'
rm -rf /var/www/$GHOST_DOMAIN_NAME
exit 63835
fi