Skip to content
Snippets Groups Projects
Commit 029c6965 authored by Bob Mottram's avatar Bob Mottram
Browse files

Unzip with overwrite

parent 05eb4f10
No related branches found
No related tags found
No related merge requests found
......@@ -185,7 +185,7 @@ function upgrade_ghost {
exit 729856
fi
unzip Ghost-${GHOST_VERSION}.zip
unzip -o Ghost-${GHOST_VERSION}.zip
if [ ! -f $GHOST_PATH/index.js ]; then
echo $'ghost failed to unzip'
exit 63835
......@@ -407,7 +407,7 @@ function install_ghost {
exit 729856
fi
unzip Ghost-${GHOST_VERSION}.zip
unzip -o Ghost-${GHOST_VERSION}.zip
if [ ! -f /var/www/${GHOST_DOMAIN_NAME}/htdocs/index.js ]; then
echo $'ghost failed to unzip'
rm -rf /var/www/$GHOST_DOMAIN_NAME
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment