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

Only download ghost if needed

parent 288e1d00
No related branches found
No related tags found
No related merge requests found
......@@ -396,7 +396,9 @@ function install_ghost {
mkdir -p /var/www/$GHOST_DOMAIN_NAME/htdocs
fi
cd /var/www/$GHOST_DOMAIN_NAME/htdocs
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'
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