diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-08-22 14:01:38 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-08-22 14:01:38 -0300 |
commit | 236a7904452e148aa050e374bfe4dee41cb1974e (patch) | |
tree | f3bdbed3a30deca9131465e0bfce0e55f66bfb90 /pcr/asterisk/asterisk.install | |
parent | 9947b58ec4c681e62db65ccd8a8b0aaee581437d (diff) | |
download | abslibre-236a7904452e148aa050e374bfe4dee41cb1974e.tar.gz abslibre-236a7904452e148aa050e374bfe4dee41cb1974e.tar.bz2 abslibre-236a7904452e148aa050e374bfe4dee41cb1974e.zip |
Asterisk upgraded and moved to [pcr]
Diffstat (limited to 'pcr/asterisk/asterisk.install')
-rw-r--r-- | pcr/asterisk/asterisk.install | 15 |
1 files changed, 15 insertions, 0 deletions
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 +} |