diff options
author | Kevin Olbrich | 2016-09-04 16:00:13 +0200 |
---|---|---|
committer | Kevin Olbrich | 2016-09-04 16:00:13 +0200 |
commit | 68291b4ef32f5714de5a8c9e38d597452a1951a4 (patch) | |
tree | 56e375b40f8f39b308e503e98c38d7b58184fa66 | |
parent | 528a72b0272bb0d4c606c9ed94aed0c1e6d951f1 (diff) | |
download | aur-68291b4ef32f5714de5a8c9e38d597452a1951a4.tar.gz |
fixed var parsing
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | asterisk-cert-opus.install | 20 |
3 files changed, 22 insertions, 2 deletions
@@ -3,7 +3,7 @@ pkgbase = asterisk-cert-opus pkgdesc = Asterisk certified with patches for Opus support from https://github.com/seanbright/asterisk-cert-opus pkgver = 13.8-cert2 - pkgrel = 2 + pkgrel = 3 url = http://www.asterisk.org install = asterisk.install arch = i686 @@ -22,7 +22,7 @@ source=(http://downloads.asterisk.org/pub/telephony/certified-asterisk/asterisk- asterisk.logrotated \ asterisk.tmpfile \ 'git+https://github.com/seanbright/asterisk-opus.git') -install=${_pkgname}.install +install=${pkgname}.install sha256sums=('9953d3ea0023f7be0e14aed587725dacc199116c9453587093e1489073b53d5d' '94acb6e68424195a12fd9d406b3fb586f264a550e75801f6e020a86e800dd42c' 'caa24cfec5c6b4f8cea385269e39557362acad7e2a552994c3bc24080e3bdd4e' diff --git a/asterisk-cert-opus.install b/asterisk-cert-opus.install new file mode 100644 index 000000000000..84cc01d87344 --- /dev/null +++ b/asterisk-cert-opus.install @@ -0,0 +1,20 @@ +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 +} |