PKGBUILDs/aur/asterisk/asterisk.install
Kevin Mihelich a25b33312a aur updates
2014-02-11 01:08:17 +00:00

20 lines
503 B
Text

post_install() {
groupadd -r asterisk
useradd -MNr -s /bin/false -d /run/asterisk -g asterisk asterisk && passwd -l asterisk &>/dev/null
post_upgrade
}
post_remove() {
killall -q asterisk
userdel asterisk &>/dev/null
groupdel asterisk &>/dev/null
}
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
}