Skip to content
Snippets Groups Projects
Commit 797a1b9c authored by Bob Mottram's avatar Bob Mottram
Browse files

Add SIP user with the adduser command

parent 5f744766
No related branches found
No related tags found
No related merge requests found
......@@ -201,6 +201,15 @@ if grep -q "Blog domain" $COMPLETION_FILE; then
echo "$MY_USERNAME added as a blog user"
fi
if grep -q "install_sip" $COMPLETION_FILE; then
freedombone-addsipuser -u $MY_USERNAME -e $SIP_EXTENSION -p "$NEW_USER_PASSWORD"
if [ ! "$?" = "0" ]; then
echo 'SIP user could not be added'
userdel -r $MY_USERNAME
exit 10
fi
fi
clear
echo "New user $MY_USERNAME was created"
echo "Their login password is $NEW_USER_PASSWORD"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment