home
·
contact
·
privacy
projects
/
config
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b0fb61b
)
Make bitlbee listen only locally.
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 25 Oct 2015 18:57:13 +0000
(19:57 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 25 Oct 2015 18:57:13 +0000
(19:57 +0100)
jessie_start_server.sh
patch
|
blob
|
history
diff --git
a/jessie_start_server.sh
b/jessie_start_server.sh
index 244167dae57fd0427968262c3bf45ceaa664a9d4..e4ed1727e2e3771f7a87fad7e394205c4c8c3316 100755
(executable)
--- a/
jessie_start_server.sh
+++ b/
jessie_start_server.sh
@@
-103,8
+103,13
@@
service postfix restart
apt-get -y install cron
su plom -c "echo '0 18 * * 0 ~/config/bin/simplemail.sh ~/config/mails/update_reminder' | crontab -"
apt-get -y install cron
su plom -c "echo '0 18 * * 0 ~/config/bin/simplemail.sh ~/config/mails/update_reminder' | crontab -"
-# Set up screen
, weechat, OTR, bitlbee
.
+# Set up screen
/weechat/OTR/bitlbee. Make bitlbee listen only locally
.
apt-get -y install screen weechat-plugins python-potr bitlbee
apt-get -y install screen weechat-plugins python-potr bitlbee
+sed -i 's/^# DaemonInterface/DaemonInterface = 127.0.0.1 # DaemonInterface/' /etc/bitlbee/bitlbee.conf
+sedtest=`grep -E '^DaemonInterface = 127.0.0.1 #' /etc/bitlbee/bitlbee.conf | wc -l | cut -d ' ' -f 1`
+if [ 0 -eq $sedtest ]; then
+ false
+fi
cp config/systemfiles/weechat.service /etc/systemd/system/weechat.service
systemctl enable /etc/systemd/system/weechat.service
cp config/systemfiles/weechat.service /etc/systemd/system/weechat.service
systemctl enable /etc/systemd/system/weechat.service