瀏覽代碼

Add new users to the sipwitch group

Bob Mottram 9 年之前
父節點
當前提交
a40b9ac6ec
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      src/freedombone-adduser

+ 5
- 0
src/freedombone-adduser 查看文件

373
     fi
373
     fi
374
 fi
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
 # add user menu on ssh login
381
 # add user menu on ssh login
377
 if ! grep -q 'control' /home/$MY_USERNAME/.bashrc; then
382
 if ! grep -q 'control' /home/$MY_USERNAME/.bashrc; then
378
     echo 'control' >> /home/$MY_USERNAME/.bashrc
383
     echo 'control' >> /home/$MY_USERNAME/.bashrc