瀏覽代碼

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