Capital
This commit is contained in:
parent
fe2efe6bb4
commit
ec888aae69
|
@ -170,7 +170,9 @@ function upgrade_ghost {
|
|||
GHOST_PATH=/var/www/$GHOST_DOMAIN_NAME/htdocs
|
||||
|
||||
cd $GHOST_PATH
|
||||
wget ${GHOST_DOWNLOAD_URL}
|
||||
if [ ! -f ghost-${GHOST_VERSION}.zip ]; then
|
||||
wget ${GHOST_DOWNLOAD_URL}
|
||||
fi
|
||||
if [ ! -f ghost-${GHOST_VERSION}.zip ]; then
|
||||
echo $'Unable to download ghost'
|
||||
exit 367245
|
||||
|
@ -183,7 +185,7 @@ function upgrade_ghost {
|
|||
exit 729856
|
||||
fi
|
||||
|
||||
unzip ghost-${GHOST_VERSION}.zip
|
||||
unzip Ghost-${GHOST_VERSION}.zip
|
||||
if [ ! -f $GHOST_PATH/index.js ]; then
|
||||
echo $'ghost failed to unzip'
|
||||
exit 63835
|
||||
|
@ -405,7 +407,7 @@ function install_ghost {
|
|||
exit 729856
|
||||
fi
|
||||
|
||||
unzip ghost-${GHOST_VERSION}.zip
|
||||
unzip 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
|
||||
|
|
Loading…
Reference in New Issue