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
da30734b
Commit
da30734b
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Stop ghost before updating
parent
14afd044
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
+11
-3
11 additions, 3 deletions
src/freedombone-app-ghost
with
11 additions
and
3 deletions
src/freedombone-app-ghost
+
11
−
3
View file @
da30734b
...
...
@@ -46,6 +46,12 @@ ghost_variables=(GHOST_DOMAIN_NAME
DDNS_PROVIDER
MY_USERNAME
)
function
ghost_bust
{
# kill the started ghost process
kill_pid
=
$(
ps aux |
grep
"ghost run"
|
awk
-F
' '
'{print $2}'
|
head
-n
1
)
kill
$kill_pid
}
function
logging_on_ghost
{
echo
-n
''
}
...
...
@@ -182,10 +188,14 @@ function upgrade_ghost {
if
[
!
-d
/var/www/
$GHOST_DOMAIN_NAME
/htdocs
]
;
then
return
fi
systemctl stop ghost
cd
/var/www/
$GHOST_DOMAIN_NAME
/htdocs
npm i
-g
ghost-cli
/usr/local/bin/ghost update
ghost_bust
ghost_replace_services
ghost_remove_offsite_links
...
...
@@ -395,9 +405,7 @@ function install_ghost {
ghost
install local
--port
${
GHOST_PORT
}
# kill the started ghost process
kill_pid
=
$(
ps aux |
grep
"ghost run"
|
awk
-F
' '
'{print $2}'
|
head
-n
1
)
kill
$kill_pid
ghost_bust
# NOTE: this has to be http, not https
sed
-i
"s|
\"
url
\"
:|
\"
url
\"
:
\"
http://
${
GHOST_DOMAIN_NAME
}
/
\"
,|g"
/var/www/
${
GHOST_DOMAIN_NAME
}
/htdocs/config.development.json
...
...
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