1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh case "$1" in pre_install) adduser -h /dev/null -s /bin/false -D freeswitch 2>/dev/null ;; post_install) chown -R freeswitch:freeswitch /etc/freeswitch/ ;; post_deinstall) deluser freeswitch delgroup freeswitch ;; esac