Skip to content
Snippets Groups Projects
Commit 1226dfde authored by Bob Mottram's avatar Bob Mottram
Browse files

Move function

parent ddf8a293
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment