2 getent group freeswitch > /dev/null
4 echo 'Adding group freeswitch'
7 id freeswitch > /dev/null
9 echo 'Adding user freeswitch'
10 useradd -r freeswitch -g freeswitch
15 cp -a /usr/share/doc/freeswitch/examples/conf.archlinux/* /etc/freeswitch/
16 chown -R freeswitch:freeswitch /etc/freeswitch
17 echo "FreeSWITCH is installed!"
18 echo "<<<WARNING>>> You MUST change the default_password in /etc/freeswitch/vars.xml
19 Failure to do so will leave your default extension 1000 vulnerable"
24 chown -R freeswitch:freeswitch /var/{run,spool,log}/freeswitch
25 echo "FreeSWITCH's default configuration is available in
26 /usr/share/doc/freeswitch/examples/conf.default, with this package's modified
27 version in /usr/share/doc/freeswitch/examples/conf.archlinux"
29 echo "FreeSWITCH can be started with rc.d freeswitch start or /etc/sv/freeswitch/run"
30 echo "To start on boot add freeswitch to /etc/rc.conf or supervise the /etc/sv/freeswitch directory"
35 getent group freeswitch &> /dev/null && groupdel freeswitch
39 # vim:set ts=2 sw=2 et: