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
12c0eed3
Commit
12c0eed3
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
re-enable git-ssb setup with paths
parent
30676600
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-scuttlebot
+13
-12
13 additions, 12 deletions
src/freedombone-app-scuttlebot
with
13 additions
and
12 deletions
src/freedombone-app-scuttlebot
+
13
−
12
View file @
12c0eed3
...
...
@@ -259,14 +259,15 @@ function git_ssb_script {
function
scuttlebot_git_setup
{
if
[[
"
$1
"
==
"mesh"
]]
;
then
if
[
!
-d
"
$rootdir
/root/.npm-global/lib/node_modules/git-ssb-web/highlight"
]
;
then
mkdir
"
$rootdir
/root/.npm-global/lib/node_modules/git-ssb-web/highlight"
if
[
!
-d
"
$rootdir
/root/.npm-global/lib/node_modules/git-ssb/node_modules/git-ssb-web/highlight"
]
;
then
mkdir
"
$rootdir
/root/.npm-global/lib/node_modules/git-ssb/node_modules/git-ssb-web/highlight"
fi
if
[
!
-f
"
$rootdir
/root/.npm-global/highlight.js/styles/foundation.css"
]
;
then
if
[
!
-f
"
$rootdir
/root/.npm-global/
lib/node_modules/git-ssb/node_modules/
highlight.js/styles/foundation.css"
]
;
then
echo
$'Could not find foundation.css'
exit
347687245
fi
cp
"
$rootdir
/root/.npm-global/lib/node_modules/highlight.js/styles/foundation.css"
"
$rootdir
/root/.npm-global/lib/node_modules/git-ssb-web/highlight/foundation.css"
cp
"
$rootdir
/root/.npm-global/lib/node_modules/
git-ssb/node_modules/
highlight.js/styles/foundation.css"
"
$rootdir
/root/.npm-global/lib/node_modules/git-ssb
/node_modules/git-ssb
-web/highlight/foundation.css"
git_ssb_nginx_site
=
$rootdir
/etc/nginx/sites-available/git_ssb
{
echo
'server {'
;
...
...
@@ -284,14 +285,14 @@ function scuttlebot_git_setup {
exit
7357225
fi
if
[
!
-d
/root/.npm-global/lib/node_modules/git-ssb-web/highlight
]
;
then
mkdir
/root/.npm-global/lib/node_modules/git-ssb-web/highlight
if
[
!
-d
/root/.npm-global/lib/node_modules/git-ssb
/node_modules/git-ssb
-web/highlight
]
;
then
mkdir
/root/.npm-global/lib/node_modules/git-ssb
/node_modules/git-ssb
-web/highlight
fi
if
[
!
-f
/root/.npm-global/lib/node_modules/highlight.js/styles/foundation.css
]
;
then
if
[
!
-f
/root/.npm-global/lib/node_modules/
git-ssb/node_modules/
highlight.js/styles/foundation.css
]
;
then
echo
$'Could not find foundation.css'
exit
347687245
fi
cp
/root/.npm-global/lib/node_modules/highlight.js/styles/foundation.css /root/.npm-global/lib/node_modules/git-ssb-web/highlight/foundation.css
cp
/root/.npm-global/lib/node_modules/
git-ssb/node_modules/
highlight.js/styles/foundation.css /root/.npm-global/lib/node_modules/git-ssb
/node_modules/git-ssb
-web/highlight/foundation.css
git_ssb_nginx_site
=
/etc/nginx/sites-available/
${
SCUTTLEBOT_DOMAIN_NAME
}
function_check nginx_http_redirect
...
...
@@ -313,7 +314,7 @@ function scuttlebot_git_setup {
fi
{
echo
''
;
echo
' root /root/.npm-global/lib/node_modules/git-ssb-web;'
;
echo
' root /root/.npm-global/lib/node_modules/git-ssb
/node_modules/git-ssb
-web;'
;
echo
''
;
echo
' location = / {'
;
echo
" proxy_pass http://localhost:
${
GIT_SSB_PORT
}
;"
;
...
...
@@ -339,7 +340,7 @@ function scuttlebot_git_setup {
echo
' add_header X-Content-Type-Options nosniff;'
;
echo
' add_header X-Frame-Options SAMEORIGIN;'
;
echo
''
;
echo
' root /root/.npm-global/lib/node_modules/git-ssb-web;'
;
echo
' root /root/.npm-global/lib/node_modules/git-ssb
/node_modules/git-ssb
-web;'
;
echo
''
;
echo
' location = / {'
;
echo
" proxy_pass http://localhost:
${
GIT_SSB_PORT
}
;"
;
...
...
@@ -443,8 +444,8 @@ EOF
echo
'[Install]'
;
echo
'WantedBy=multi-user.target'
;
}
>
"
$rootdir
/etc/systemd/system/scuttlebot.service"
#
scuttlebot_git_setup mesh
#
git_ssb_script mesh
scuttlebot_git_setup mesh
git_ssb_script mesh
}
function
install_scuttlebot
{
...
...
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