added specific jabber port feature
This commit is contained in:
parent
565b86e547
commit
1209f97a44
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue