Group :: System/Servers
RPM: jabberd2
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
#!/bin/sh -e
CONFIG_FILE=/etc/jabberd2/router.xml
TEMP=`getopt -n "$0" -o '' -l policy,port,password -- "$@"` || exit 1
eval set -- "$TEMP"
while :; do
case "$1" in
--policy) echo single
;;
--port) xmlstarlet sel -t -v '/router/local/port' <$CONFIG_FILE
;;
--password) xmlstarlet sel -t -v '/router/local/secret' <$CONFIG_FILE
;;
--) shift; break
;;
*)
echo "Invalid command: $1"
exit 2
;;
esac
shift
done