Kaynağa Gözat

firewall for scuttlebot

Bob Mottram 7 yıl önce
ebeveyn
işleme
1a807f4cbc
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4
    0
      src/freedombone-app-scuttlebot

+ 4
- 0
src/freedombone-app-scuttlebot Dosyayı Görüntüle

@@ -161,6 +161,8 @@ function restore_remote_scuttlebot {
161 161
 }
162 162
 
163 163
 function remove_scuttlebot {
164
+    firewall_remove ${SCUTTLEBOT_PORT}
165
+
164 166
     systemctl stop scuttlebot
165 167
     systemctl disable scuttlebot
166 168
     rm /etc/systemd/system/scuttlebot.service
@@ -247,6 +249,8 @@ function install_scuttlebot {
247 249
     chown scuttlebot:scuttlebot /etc/scuttlebot/.ssb/config
248 250
     systemctl restart scuttlebot.service
249 251
 
252
+    firewall_add scuttlebot ${SCUTTLEBOT_PORT}
253
+
250 254
     if ! grep -q "scuttlebot version:" ${COMPLETION_FILE}; then
251 255
         echo "scuttlebot version:${SCUTTLEBOT_VERSION}" >> ${COMPLETION_FILE}
252 256
     else