Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
be5dd63e
Commit
be5dd63e
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
ghost download url
parent
46381221
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-app-ghost
+8
-6
8 additions, 6 deletions
src/freedombone-app-ghost
with
8 additions
and
6 deletions
src/freedombone-app-ghost
+
8
−
6
View file @
be5dd63e
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment