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}
|
wget ${GHOST_DOWNLOAD_URL}
|
||||||
if [ ! -f ghost-${GHOST_VERSION}.zip ]; then
|
if [ ! -f ghost-${GHOST_VERSION}.zip ]; then
|
||||||
echo $'Unable to download ghost'
|
echo $'Unable to download ghost'
|
||||||
rm -rf /var/www/$GHOST_DOMAIN_NAME
|
|
||||||
exit 367245
|
exit 367245
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -183,7 +182,6 @@ function upgrade_ghost {
|
||||||
unzip ghost-${GHOST_VERSION}.zip
|
unzip ghost-${GHOST_VERSION}.zip
|
||||||
if [ ! -f $GHOST_PATH/index.js ]; then
|
if [ ! -f $GHOST_PATH/index.js ]; then
|
||||||
echo $'ghost failed to unzip'
|
echo $'ghost failed to unzip'
|
||||||
rm -rf /var/www/$GHOST_DOMAIN_NAME
|
|
||||||
exit 63835
|
exit 63835
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue