mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
15 lines
448 B
Text
15 lines
448 B
Text
post_install() {
|
|
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
|
|
}
|
|
|
|
post_remove() {
|
|
userdel asterisk &>/dev/null
|
|
groupdel asterisk &>/dev/null
|
|
}
|