firewall for scuttlebot
This commit is contained in:
parent
1c13395a7d
commit
1a807f4cbc
|
@ -161,6 +161,8 @@ function restore_remote_scuttlebot {
|
||||||
}
|
}
|
||||||
|
|
||||||
function remove_scuttlebot {
|
function remove_scuttlebot {
|
||||||
|
firewall_remove ${SCUTTLEBOT_PORT}
|
||||||
|
|
||||||
systemctl stop scuttlebot
|
systemctl stop scuttlebot
|
||||||
systemctl disable scuttlebot
|
systemctl disable scuttlebot
|
||||||
rm /etc/systemd/system/scuttlebot.service
|
rm /etc/systemd/system/scuttlebot.service
|
||||||
|
@ -247,6 +249,8 @@ function install_scuttlebot {
|
||||||
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}
|
||||||
|
|
||||||
if ! grep -q "scuttlebot version:" ${COMPLETION_FILE}; then
|
if ! grep -q "scuttlebot version:" ${COMPLETION_FILE}; then
|
||||||
echo "scuttlebot version:${SCUTTLEBOT_VERSION}" >> ${COMPLETION_FILE}
|
echo "scuttlebot version:${SCUTTLEBOT_VERSION}" >> ${COMPLETION_FILE}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue