firewall for scuttlebot
This commit is contained in:
parent
1c13395a7d
commit
1a807f4cbc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue