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
1226dfde
Commit
1226dfde
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Move function
parent
ddf8a293
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-app-scuttlebot
+4
-5
4 additions, 5 deletions
src/freedombone-app-scuttlebot
src/freedombone-utils-dns
+5
-0
5 additions, 0 deletions
src/freedombone-utils-dns
with
9 additions
and
5 deletions
src/freedombone-app-scuttlebot
+
4
−
5
View file @
1226dfde
...
@@ -38,6 +38,10 @@ SCUTTLEBOT_REPLICATE_NODES=10
...
@@ -38,6 +38,10 @@ SCUTTLEBOT_REPLICATE_NODES=10
SCUTTLEBOT_PORT
=
8010
SCUTTLEBOT_PORT
=
8010
SCUTTLEBOT_ONION_PORT
=
8623
SCUTTLEBOT_ONION_PORT
=
8623
SCUTTLEBOT_SHORT_DESCRIPTION
=
$'Scuttlebot Pub'
SCUTTLEBOT_DESCRIPTION
=
$'Scuttlebot Pub'
SCUTTLEBOT_MOBILE_APP_URL
=
'https://f-droid.org/en/packages/se.manyver/'
scuttlebot_variables
=(
MY_USERNAME
scuttlebot_variables
=(
MY_USERNAME
DEFAULT_DOMAIN_NAME
DEFAULT_DOMAIN_NAME
SYSTEM_TYPE
)
SYSTEM_TYPE
)
...
@@ -249,11 +253,6 @@ EOF
...
@@ -249,11 +253,6 @@ EOF
echo
'WantedBy=multi-user.target'
;
}
>
"
$rootdir
/etc/systemd/system/scuttlebot.service"
echo
'WantedBy=multi-user.target'
;
}
>
"
$rootdir
/etc/systemd/system/scuttlebot.service"
}
}
function
enable_mdns
{
# files gw_name myhostname mdns4_minimal [NOTFOUND=return] dns
sed
-i
"s|hosts:.*|hosts: files mdns4_minimal dns mdns4 mdns|g"
/etc/nsswitch.conf
}
function
install_scuttlebot
{
function
install_scuttlebot
{
function_check install_nodejs
function_check install_nodejs
install_nodejs scuttlebot
install_nodejs scuttlebot
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-dns
+
5
−
0
View file @
1226dfde
...
@@ -95,6 +95,11 @@ EXTERNAL_IP_SERVICES=( \
...
@@ -95,6 +95,11 @@ EXTERNAL_IP_SERVICES=( \
'http://ipinfo.io/'
\
'http://ipinfo.io/'
\
'http://httpbin.org/ip'
)
'http://httpbin.org/ip'
)
function
enable_mdns
{
# files gw_name myhostname mdns4_minimal [NOTFOUND=return] dns
sed
-i
"s|hosts:.*|hosts: files mdns4_minimal dns mdns4 mdns|g"
/etc/nsswitch.conf
}
function
update_inadyn_config
{
function
update_inadyn_config
{
if
[
!
-f
"
${
INADYN_CONFIG_FILE
}
"
]
;
then
if
[
!
-f
"
${
INADYN_CONFIG_FILE
}
"
]
;
then
return
return
...
...
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