1
1
Fork 0

added specific jabber port feature

This commit is contained in:
David Starzengruber 2010-07-09 00:30:18 +02:00
parent 565b86e547
commit 1209f97a44
2 changed files with 9 additions and 1 deletions

View File

@ -8,6 +8,7 @@ watchdogs="max@muster.com moriz@jabber.anotherdomain.com"
user="jabber-username"
pass="jabber-password"
server="jabber-server"
#port="5222" # uncomment if you want to use a specific port
## define disks you wanna check? (whitespace seperated)
disks="hda1 hda2 hdd1"

View File

@ -48,7 +48,14 @@ fi
if [ -f ~/.sendxmpprc ]; then
echo "info: jabber config found in ~/.sendxmpprc"
else
echo "$user@$server $pass" > ~/.sendxmpprc
if [ -z $port ]; then
port="5222"
else
echo "info: using port $port"
fi
echo "$user@$server:$port $pass" > ~/.sendxmpprc
chmod 600 ~/.sendxmpprc
echo "info: created sendxmpp config in ~/.sendxmpprc"
fi