From a40b9ac6ecb7efcbc31000bd73e49d0b5a4f8197 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 22 Mar 2016 09:27:56 +0000 Subject: [PATCH] Add new users to the sipwitch group --- src/freedombone-adduser | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedombone-adduser b/src/freedombone-adduser index 76f21030..516e8c26 100755 --- a/src/freedombone-adduser +++ b/src/freedombone-adduser @@ -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