diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-02-10 23:16:43 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-02-10 23:16:43 +0200 |
commit | a0d9d3b125f5cbcc9f9ad1344f2ab1154a42329a (patch) | |
tree | 3ff3e0f861223934920ad2bad157e19231e51cd1 /main/asterisk/asterisk.pre-install | |
parent | 01c18d4be8fda8c56f4753cb720994d5afd2877f (diff) | |
download | aports-a0d9d3b125f5cbcc9f9ad1344f2ab1154a42329a.tar.bz2 aports-a0d9d3b125f5cbcc9f9ad1344f2ab1154a42329a.tar.xz |
main/asterisk: fix package directory permissions
instead of using post install script to do it
Diffstat (limited to 'main/asterisk/asterisk.pre-install')
-rw-r--r-- | main/asterisk/asterisk.pre-install | 12 |
1 files changed, 3 insertions, 9 deletions
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 - |