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