ghost download url
This commit is contained in:
parent
4638122109
commit
be5dd63e71
|
@ -13,7 +13,7 @@
|
||||||
# License
|
# 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
|
# 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
|
# 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_DOMAIN_NAME=
|
||||||
GHOST_CODE=
|
GHOST_CODE=
|
||||||
GHOST_ONION_PORT=8104
|
GHOST_ONION_PORT=8104
|
||||||
GHOST_VERSION='0.11.8'
|
|
||||||
GHOST_PORT=2368
|
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_variables=(GHOST_VERSION
|
||||||
GHOST_DOMAIN_NAME
|
GHOST_DOMAIN_NAME
|
||||||
|
@ -151,10 +152,11 @@ function reconfigure_ghost {
|
||||||
|
|
||||||
function upgrade_ghost {
|
function upgrade_ghost {
|
||||||
if ! grep -q "ghost version:" $COMPLETION_FILE; then
|
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
|
fi
|
||||||
|
|
||||||
CURR_GHOST_VERSION=$(get_completion_param "ghost version")
|
|
||||||
if [[ "$GHOST_VERSION" == "$CURR_GHOST_VERSION" ]]; then
|
if [[ "$GHOST_VERSION" == "$CURR_GHOST_VERSION" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -164,7 +166,7 @@ function upgrade_ghost {
|
||||||
GHOST_PATH=/var/www/$GHOST_DOMAIN_NAME/htdocs
|
GHOST_PATH=/var/www/$GHOST_DOMAIN_NAME/htdocs
|
||||||
|
|
||||||
cd $GHOST_PATH
|
cd $GHOST_PATH
|
||||||
wget https://ghost.org/zip/ghost-${GHOST_VERSION}.zip
|
wget ${GHOST_DOWNLOAD_URL}
|
||||||
if [ ! -f ghost-${GHOST_VERSION}.zip ]; then
|
if [ ! -f ghost-${GHOST_VERSION}.zip ]; then
|
||||||
echo $'Unable to download ghost'
|
echo $'Unable to download ghost'
|
||||||
rm -rf /var/www/$GHOST_DOMAIN_NAME
|
rm -rf /var/www/$GHOST_DOMAIN_NAME
|
||||||
|
@ -365,7 +367,7 @@ function install_ghost {
|
||||||
mkdir -p /var/www/$GHOST_DOMAIN_NAME/htdocs
|
mkdir -p /var/www/$GHOST_DOMAIN_NAME/htdocs
|
||||||
fi
|
fi
|
||||||
cd /var/www/$GHOST_DOMAIN_NAME/htdocs
|
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
|
if [ ! -f ghost-${GHOST_VERSION}.zip ]; then
|
||||||
echo $'Unable to download ghost'
|
echo $'Unable to download ghost'
|
||||||
rm -rf /var/www/$GHOST_DOMAIN_NAME
|
rm -rf /var/www/$GHOST_DOMAIN_NAME
|
||||||
|
|
Loading…
Reference in New Issue