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

ssb tor integration

parent 1e1134ff
No related branches found
No related tags found
No related merge requests found
...@@ -481,9 +481,19 @@ function install_scuttlebot { ...@@ -481,9 +481,19 @@ function install_scuttlebot {
exit 73528 exit 73528
fi fi
{ echo '{'; SCUTTLEBOT_ONION_HOSTNAME=$(add_onion_service scuttlebot 80 ${SCUTTLEBOT_ONION_PORT})
echo " \"host\": \"${DEFAULT_DOMAIN_NAME}\",";
echo " \"port\": ${SCUTTLEBOT_PORT},"; if [[ "$ONION_ONLY" == 'no' ]]; then
{ echo '{';
echo " \"host\": \"${DEFAULT_DOMAIN_NAME}\",";
echo ' "tor-only": false,'; } > /etc/scuttlebot/.ssb/config
else
{ echo '{';
echo " \"host\": \"${SCUTTLEBOT_ONION_HOSTNAME}\",";
echo ' "tor-only": true,'; } > /etc/scuttlebot/.ssb/config
fi
{ echo " \"port\": ${SCUTTLEBOT_PORT},";
echo ' "timeout": 30000,'; echo ' "timeout": 30000,';
echo ' "pub": true,'; echo ' "pub": true,';
echo ' "local": true,'; echo ' "local": true,';
...@@ -498,15 +508,13 @@ function install_scuttlebot { ...@@ -498,15 +508,13 @@ function install_scuttlebot {
echo ' "logging": {'; echo ' "logging": {';
echo ' "level": "error"'; echo ' "level": "error"';
echo ' }'; echo ' }';
echo '}'; } > /etc/scuttlebot/.ssb/config echo '}'; } >> /etc/scuttlebot/.ssb/config
chown scuttlebot:scuttlebot /etc/scuttlebot/.ssb/config chown scuttlebot:scuttlebot /etc/scuttlebot/.ssb/config
systemctl restart scuttlebot.service systemctl restart scuttlebot.service
firewall_add scuttlebot ${SCUTTLEBOT_PORT} firewall_add scuttlebot ${SCUTTLEBOT_PORT}
firewall_add git_ssb ${GIT_SSB_PORT} firewall_add git_ssb ${GIT_SSB_PORT}
SCUTTLEBOT_ONION_HOSTNAME=$(add_onion_service scuttlebot 80 ${SCUTTLEBOT_ONION_PORT})
scuttlebot_git_setup scuttlebot_git_setup
git_ssb_script git_ssb_script
......
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