2011-03-30 00:44:18 +00:00
|
|
|
post_install() {
|
2013-06-26 16:41:16 +00:00
|
|
|
groupadd -r asterisk
|
|
|
|
useradd -MNr -s /bin/false -d /run/asterisk -g asterisk asterisk && passwd -l asterisk &>/dev/null
|
|
|
|
|
2014-02-11 01:08:17 +00:00
|
|
|
post_upgrade
|
2011-03-30 00:44:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_remove() {
|
2014-02-11 01:08:17 +00:00
|
|
|
killall -q asterisk
|
2013-06-26 16:41:16 +00:00
|
|
|
userdel asterisk &>/dev/null
|
|
|
|
groupdel asterisk &>/dev/null
|
2011-03-30 00:44:18 +00:00
|
|
|
}
|
2014-02-11 01:08:17 +00:00
|
|
|
|
|
|
|
post_upgrade() {
|
|
|
|
chown -R asterisk:asterisk /etc/asterisk
|
|
|
|
chown -R asterisk:asterisk /var/lib/asterisk
|
|
|
|
chown -R asterisk:asterisk /var/log/asterisk
|
|
|
|
chown -R asterisk:asterisk /run/asterisk
|
|
|
|
chown -R asterisk:asterisk /var/spool/asterisk
|
|
|
|
}
|