From a0d9d3b125f5cbcc9f9ad1344f2ab1154a42329a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 10 Feb 2012 23:16:43 +0200 Subject: main/asterisk: fix package directory permissions instead of using post install script to do it --- main/asterisk/asterisk.pre-install | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'main/asterisk/asterisk.pre-install') diff --git a/main/asterisk/asterisk.pre-install b/main/asterisk/asterisk.pre-install index 09985d7cdb..6c2984ae4e 100644 --- a/main/asterisk/asterisk.pre-install +++ b/main/asterisk/asterisk.pre-install @@ -1,12 +1,6 @@ #!/bin/sh -user=asterisk -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 +adduser -S -h /var/lib/asterisk -s /bin/false -D asterisk 2>/dev/null +addgroup -S dialout 2>/dev/null +addgroup asterisk dialout 2>/dev/null exit 0 - -- cgit v1.2.3