Don't remove ghost files on failure
This commit is contained in:
parent
add4b3464c
commit
fea7b3a2c4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue