firewall for scuttlebot

This commit is contained in:
Bob Mottram 2017-05-23 17:38:48 +01:00
parent 1c13395a7d
commit 1a807f4cbc
1 changed files with 4 additions and 0 deletions

View File

@ -161,6 +161,8 @@ function restore_remote_scuttlebot {
}
function remove_scuttlebot {
firewall_remove ${SCUTTLEBOT_PORT}
systemctl stop scuttlebot
systemctl disable scuttlebot
rm /etc/systemd/system/scuttlebot.service
@ -247,6 +249,8 @@ function install_scuttlebot {
chown scuttlebot:scuttlebot /etc/scuttlebot/.ssb/config
systemctl restart scuttlebot.service
firewall_add scuttlebot ${SCUTTLEBOT_PORT}
if ! grep -q "scuttlebot version:" ${COMPLETION_FILE}; then
echo "scuttlebot version:${SCUTTLEBOT_VERSION}" >> ${COMPLETION_FILE}
else