Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- set -e
- if [ "$#" -ne 3 ]; then
- printf '%b\n' "\033[1m$0\033[0m \033[4muser\033[0m \033[4mhost\033[0m \033[4mpassword\033[0m"
- exit 1
- fi
- user=$1
- host=$2
- password=$3
- /usr/sbin/ejabberdctl register "$user" "$host" "$password"
- printf "$user:$(printf $(echo -n $user:$host:$password | md5sum)):$host:authorized\n" >> /etc/reTurn/users.txt
- /bin/systemctl reload resiprocate-turn-server.service
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement