Run scuttlebot on mesh peers if git-ssb is enabled

This commit is contained in:
Bob Mottram 2017-12-16 13:09:12 +00:00
parent 0fb0010f14
commit 5ed6ef6483
1 changed files with 5 additions and 1 deletions

View File

@ -483,7 +483,11 @@ function start {
sed -i "s|\"host\": .*|\"host\": \"$(get_ipv4_wlan)\",|g" /etc/scuttlebot/.ssb/config
systemctl restart scuttlebot
else
systemctl stop scuttlebot
if [ ! -f /etc/nginx/sites-available/git_ssb ]; then
systemctl stop scuttlebot
else
systemctl restart scuttlebot
fi
fi
fi