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

ghost download url

parent 46381221
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@
# License
# =======
#
# Copyright (C) 2016 Bob Mottram <bob@freedombone.net>
# Copyright (C) 2016-2017 Bob Mottram <bob@freedombone.net>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
......@@ -36,8 +36,9 @@ SHOW_ON_ABOUT=1
GHOST_DOMAIN_NAME=
GHOST_CODE=
GHOST_ONION_PORT=8104
GHOST_VERSION='0.11.8'
GHOST_PORT=2368
GHOST_VERSION='0.11.8'
GHOST_DOWNLOAD_URL="https://github.com/TryGhost/Ghost/releases/download/${GHOST_VERSION}/Ghost-${GHOST_VERSION}.zip"
ghost_variables=(GHOST_VERSION
GHOST_DOMAIN_NAME
......@@ -151,10 +152,11 @@ function reconfigure_ghost {
function upgrade_ghost {
if ! grep -q "ghost version:" $COMPLETION_FILE; then
return
CURR_GHOST_VERSION=${GHOST_VERSION}b
else
CURR_GHOST_VERSION=$(get_completion_param "ghost version")
fi
CURR_GHOST_VERSION=$(get_completion_param "ghost version")
if [[ "$GHOST_VERSION" == "$CURR_GHOST_VERSION" ]]; then
return
fi
......@@ -164,7 +166,7 @@ function upgrade_ghost {
GHOST_PATH=/var/www/$GHOST_DOMAIN_NAME/htdocs
cd $GHOST_PATH
wget https://ghost.org/zip/ghost-${GHOST_VERSION}.zip
wget ${GHOST_DOWNLOAD_URL}
if [ ! -f ghost-${GHOST_VERSION}.zip ]; then
echo $'Unable to download ghost'
rm -rf /var/www/$GHOST_DOMAIN_NAME
......@@ -365,7 +367,7 @@ function install_ghost {
mkdir -p /var/www/$GHOST_DOMAIN_NAME/htdocs
fi
cd /var/www/$GHOST_DOMAIN_NAME/htdocs
wget https://ghost.org/zip/ghost-${GHOST_VERSION}.zip
wget ${GHOST_DOWNLOAD_URL}
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