From bf025a037b3ee50034497ee092ab5126a9c847cb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 21 Jun 2017 21:26:47 +0100 Subject: [PATCH] Only download ghost if needed --- src/freedombone-app-ghost | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/freedombone-app-ghost b/src/freedombone-app-ghost index 886180d8..7185ecd6 100755 --- a/src/freedombone-app-ghost +++ b/src/freedombone-app-ghost @@ -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