Unzip with overwrite
This commit is contained in:
parent
05eb4f1054
commit
029c69654e
|
@ -185,7 +185,7 @@ function upgrade_ghost {
|
||||||
exit 729856
|
exit 729856
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unzip Ghost-${GHOST_VERSION}.zip
|
unzip -o 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'
|
||||||
exit 63835
|
exit 63835
|
||||||
|
@ -407,7 +407,7 @@ function install_ghost {
|
||||||
exit 729856
|
exit 729856
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unzip Ghost-${GHOST_VERSION}.zip
|
unzip -o Ghost-${GHOST_VERSION}.zip
|
||||||
if [ ! -f /var/www/${GHOST_DOMAIN_NAME}/htdocs/index.js ]; then
|
if [ ! -f /var/www/${GHOST_DOMAIN_NAME}/htdocs/index.js ]; then
|
||||||
echo $'ghost failed to unzip'
|
echo $'ghost failed to unzip'
|
||||||
rm -rf /var/www/$GHOST_DOMAIN_NAME
|
rm -rf /var/www/$GHOST_DOMAIN_NAME
|
||||||
|
|
Loading…
Reference in New Issue