Explorar el Código

Add new users to the sipwitch group

Bob Mottram hace 9 años
padre
commit
a40b9ac6ec
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5
    0
      src/freedombone-adduser

+ 5
- 0
src/freedombone-adduser Ver fichero

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