]>
git.ipfire.org Git - thirdparty/freeswitch.git/blob
cc623b611b1aad133ec179e0f79f49b8414d7a45
3 # create gsmsms group if necessary.
4 if ! grep -q ^gsmsms
: /etc
/group
; then
5 # echo Adding system group: gsmsms.
9 # create gsmsms user if necessary.
10 if ! grep -q ^gsmsms
: /etc
/passwd
; then
11 # echo Adding system user: gsmsms.
12 adduser
--system --ingroup gsmsms \
13 --no-create-home --home /var
/spool
/sms gsmsms
16 # allow gsmsms to use serial lines
17 if ! groups gsmsms
| grep -q dialout
; then
18 adduser gsmsms dialout
21 # echo Updating spool directory structure: /var/spool/sms
22 chown
-R gsmsms
:gsmsms
/var
/spool
/sms
/var
/run
/gsm
-utils
23 chmod 700 /var
/spool
/sms
/*
24 chmod 750 /var
/spool
/sms
25 chmod 730 /var
/spool
/sms
/queue
* /var
/spool
/sms
/tmp
27 # Add the rest automatically..