Commit d04fddf1 authored by Natanael Copa's avatar Natanael Copa

main/asterisk: add asterisk user to dialout group

fixes #170
parent 0616de25
......@@ -2,7 +2,7 @@
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=asterisk
pkgver=1.6.0.15
pkgrel=1
pkgrel=2
pkgdesc="Asterisk: A Module Open Source PBX System"
url="http://www.asterisk.org/"
license="GPL"
......@@ -10,7 +10,7 @@ depends=
makedepends="autoconf automake libtool ncurses-dev popt-dev newt-dev zlib-dev
postgresql-dev unixodbc-dev dahdi-tools-dev libpri-dev tar
freetds-dev openssl-dev lua-dev"
install="$pkgname.pre-install $pkgname.post-install"
install="$pkgname.pre-install $pkgname.pre-upgrade $pkgname.post-install"
subpackages="$pkgname-dev $pkgname-doc $pkgname-pgsql $pkgname-odbc
$pkgname-tds"
source="http://downloads.digium.com/pub/asterisk/releases/$pkgname-$pkgver.tar.gz
......
......@@ -5,5 +5,8 @@ home=/var/lib/asterisk
adduser -h $home -s /bin/false -D $user 2>/dev/null
mkdir -p $home
chown $user:$user $home
addgroup dialout 2>/dev/null
addgroup $user dialout 2>/dev/null
exit 0
asterisk.pre-install
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment