소스 검색

firewall for scuttlebot

Bob Mottram 7 년 전
부모
커밋
1a807f4cbc
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4
    0
      src/freedombone-app-scuttlebot

+ 4
- 0
src/freedombone-app-scuttlebot 파일 보기

@@ -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