2 echo -n "adding asterisk system group... "
3 groupadd -g 5060 asterisk && echo "done."
4 echo -n "adding asterisk system user... "
5 useradd -c "Asterisk daemon" -u 5060 -d /var/lib/asterisk -g asterisk -s /bin/false asterisk \
7 passwd -l asterisk &>/dev/null
8 chown -R asterisk:asterisk /var/run/asterisk
9 chown -R asterisk:asterisk /var/log/asterisk
10 chown -R asterisk:asterisk /var/spool/asterisk
11 chown -R asterisk:asterisk /var/lib/asterisk
15 >>> To get Music on Hold working do pacman -S mpg123
16 >>> To get the postgresql, unixodbc or sqlite2 modules working
17 >>> download the respective package and modify modules.conf to reflect
25 if grep asterisk /etc/passwd &>/dev/null; then
33 echo -n -e "\nremoving asterisk system user... "
34 userdel asterisk && echo "done."