Kaynağa Gözat

Add new users to the sipwitch group

Bob Mottram 9 yıl önce
ebeveyn
işleme
a40b9ac6ec
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5
    0
      src/freedombone-adduser

+ 5
- 0
src/freedombone-adduser Dosyayı Görüntüle

@@ -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