aboutsummaryrefslogtreecommitdiffstats
path: root/main/amavisd-new/amavisd-new.pre-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-10-02 08:38:13 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-10-02 08:38:13 +0000
commit169ed56eb13e8152b4fc19bcfe56533b9867f47c (patch)
tree09d16023f8ecd66c97489cf8d5f7fefc566e3c46 /main/amavisd-new/amavisd-new.pre-install
parentac3f9c9c44f92f3c02125147d0218b143e3ac461 (diff)
downloadaports-169ed56eb13e8152b4fc19bcfe56533b9867f47c.tar.bz2
aports-169ed56eb13e8152b4fc19bcfe56533b9867f47c.tar.xz
main/amavisd-new: pre-install and existing user
pre-install script should not fail if user and group exists. fixes #175
Diffstat (limited to 'main/amavisd-new/amavisd-new.pre-install')
-rwxr-xr-xmain/amavisd-new/amavisd-new.pre-install6
1 files changed, 4 insertions, 2 deletions
diff --git a/main/amavisd-new/amavisd-new.pre-install b/main/amavisd-new/amavisd-new.pre-install
index aaaa763c80..167ec16d6d 100755
--- a/main/amavisd-new/amavisd-new.pre-install
+++ b/main/amavisd-new/amavisd-new.pre-install
@@ -1,4 +1,6 @@
#!/bin/sh
-addgroup amavis
-adduser -D -S -G amavis -h /var/amavis -s /bin/false amavis
+addgroup amavis 2>/dev/null
+adduser -D -S -G amavis -h /var/amavis -s /bin/false amavis 2>/dev/null
+exit 0
+