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
61341e10
Commit
61341e10
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Improving ghost install
parent
c1ed8a47
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
+19
-6
19 additions, 6 deletions
src/freedombone-app-ghost
with
19 additions
and
6 deletions
src/freedombone-app-ghost
+
19
−
6
View file @
61341e10
...
...
@@ -372,7 +372,7 @@ function install_ghost {
install_nodejs ghost
# now install ghost itself
npm
install
-g
ghost-cli@
1.4.1
npm
install
-g
ghost-cli@
latest
if
[
!
-f
/usr/local/bin/ghost
]
;
then
echo
$'ghost was not installed'
exit
738539
...
...
@@ -380,14 +380,30 @@ function install_ghost {
GHOST_ONION_HOSTNAME
=
$(
add_onion_service ghost 80
${
GHOST_ONION_PORT
}
)
rm
-rf
/var/www/
$GHOST_DOMAIN_NAME
/htdocs/
*
npm
install
-g
yarn
yarn
install
--no-emoji
--no-progress
yarn cache clean
printf
'y'
| ghost
install
${
GHOST_VERSION
}
--user
ghost
--db
=
sqlite3
--port
${
GHOST_PORT
}
--verbose
adduser
--system
--home
=
/var/www/
${
GHOST_DOMAIN_NAME
}
/htdocs/
--group
ghost
rm
-rf
/var/www/
$GHOST_DOMAIN_NAME
/htdocs/
*
printf
'y'
| ghost
install
${
GHOST_VERSION
}
--user
ghost
--db
=
sqlite3
--port
${
GHOST_PORT
}
--verbose
if
[
!
-d
/var/www/
$GHOST_DOMAIN_NAME
/htdocs/versions
]
;
then
echo
$'versions directory was not found'
exit
782523462
fi
if
[
!
-d
/var/www/
$GHOST_DOMAIN_NAME
/htdocs/content
]
;
then
echo
$'content directory was not found'
exit
68352682
fi
npm
install
-g
knex-migrator
if
[
!
-f
/var/www/
$GHOST_DOMAIN_NAME
/htdocs/versions/
${
GHOST_VERSION
}
/MigratorConfig.js
]
;
then
echo
$'MigratorConfig.js was not found'
exit
62783538
fi
cp
/var/www/
$GHOST_DOMAIN_NAME
/htdocs/versions/
${
GHOST_VERSION
}
/MigratorConfig.js /var/www/
$GHOST_DOMAIN_NAME
/htdocs
chown
-R
ghost: /var/www/
$GHOST_DOMAIN_NAME
/htdocs
cd
/var/www/
$GHOST_DOMAIN_NAME
/htdocs/current
knex-migrator init
ghost_bust
...
...
@@ -419,9 +435,6 @@ function install_ghost {
chown
-R
ghost: /var/www/
${
GHOST_DOMAIN_NAME
}
/htdocs
n
${
NODEJS_VERSION
}
npm upgrade
-g
npm@
${
NPM_VERSION
}
--save
systemctl
enable
ghost
systemctl daemon-reload
systemctl start ghost
...
...
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