Check for directory

This commit is contained in:
Bob Mottram 2017-05-11 22:59:06 +01:00
parent fea7b3a2c4
commit 26fb6bd604
1 changed files with 4 additions and 0 deletions

View File

@ -151,6 +151,10 @@ function reconfigure_ghost {
}
function upgrade_ghost {
if [ ! -d /var/www/$GHOST_DOMAIN_NAME/htdocs ]; then
return
fi
if ! grep -q "ghost version:" $COMPLETION_FILE; then
CURR_GHOST_VERSION=${GHOST_VERSION}b
else