diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2012-04-03 14:54:55 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2012-04-03 14:54:55 +0000 |
commit | b618c3d0693aec564c6746238fd05d94e31d3b76 (patch) | |
tree | 4a4834f3097bba25dba1adeba4324080c1b4bf7b /testing/mailman/mailman.install | |
parent | 8cb5196780766f47b595410eed8ddbee2e8add08 (diff) |
Tue Apr 3 14:54:45 UTC 2012
Diffstat (limited to 'testing/mailman/mailman.install')
-rw-r--r-- | testing/mailman/mailman.install | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/testing/mailman/mailman.install b/testing/mailman/mailman.install deleted file mode 100644 index ec85260a5..000000000 --- a/testing/mailman/mailman.install +++ /dev/null @@ -1,31 +0,0 @@ -## arg 1: the new package version -post_install() { - # Make sure the group and user "mailman" exists on this system and has the correct values - if grep -q "^mailman:" /etc/group &> /dev/null ; then - groupmod -g 80 -n mailman mailman &> /dev/null - else - groupadd -g 80 mailman &> /dev/null - fi - - if grep -q "^mailman:" /etc/passwd 2> /dev/null ; then - usermod -s /sbin/nologin -c "GNU Mailing List Manager" -d /usr/lib/mailman -u 80 -g mailman mailman &> /dev/null - else - useradd -s /sbin/nologin -c "GNU Mailing List Manager" -d /usr/lib/mailman -u 80 -g mailman -M -r mailman &> /dev/null - fi - - # check file permissions -# cd /usr/lib/mailman && bin/check_perms -f > /dev/null 2>&1 # -f applies fixes we should solve in the PKGBUILD - cd /usr/lib/mailman && bin/check_perms > /dev/null -} - -## arg 1: the new package version -## arg 2: the old package version -post_upgrade() { - post_install $1 -} - -## arg 1: the old package version -pre_remove() { - userdel mailman &>/dev/null - groupdel mailman &>/dev/null || /bin/true -} |