From 236a7904452e148aa050e374bfe4dee41cb1974e Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Thu, 22 Aug 2013 14:01:38 -0300 Subject: Asterisk upgraded and moved to [pcr] --- pcr/asterisk/asterisk.install | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pcr/asterisk/asterisk.install (limited to 'pcr/asterisk/asterisk.install') diff --git a/pcr/asterisk/asterisk.install b/pcr/asterisk/asterisk.install new file mode 100644 index 000000000..b7c1a71f7 --- /dev/null +++ b/pcr/asterisk/asterisk.install @@ -0,0 +1,15 @@ +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 +} -- cgit v1.2.3-54-g00ecf