Add new users to the sipwitch group

This commit is contained in:
Bob Mottram 2016-03-22 09:27:56 +00:00
parent feecec510b
commit a40b9ac6ec
1 changed files with 5 additions and 0 deletions

View File

@ -373,6 +373,11 @@ if [ -f /etc/nginx/.htpasswd ]; then
fi
fi
# add user to the sipwitch group
if [ -f /etc/sipwitch.conf ]; then
usermod -aG sipwitch $MY_USERNAME
fi
# add user menu on ssh login
if ! grep -q 'control' /home/$MY_USERNAME/.bashrc; then
echo 'control' >> /home/$MY_USERNAME/.bashrc