Add SIP user with the adduser command
This commit is contained in:
parent
5f7447665a
commit
797a1b9cef
|
@ -201,6 +201,15 @@ if grep -q "Blog domain" $COMPLETION_FILE; then
|
||||||
echo "$MY_USERNAME added as a blog user"
|
echo "$MY_USERNAME added as a blog user"
|
||||||
fi
|
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
|
clear
|
||||||
echo "New user $MY_USERNAME was created"
|
echo "New user $MY_USERNAME was created"
|
||||||
echo "Their login password is $NEW_USER_PASSWORD"
|
echo "Their login password is $NEW_USER_PASSWORD"
|
||||||
|
|
Loading…
Reference in New Issue