PKGBUILDs/aur/asterisk/asterisk.install

16 lines
448 B
Text
Raw Normal View History

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
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
2011-03-30 00:44:18 +00:00
}
post_remove() {
2013-06-26 16:41:16 +00:00
userdel asterisk &>/dev/null
groupdel asterisk &>/dev/null
2011-03-30 00:44:18 +00:00
}