diff options
author | Johann Visagie <wjv@FreeBSD.org> | 2002-10-21 15:31:38 +0000 |
---|---|---|
committer | Johann Visagie <wjv@FreeBSD.org> | 2002-10-21 15:31:38 +0000 |
commit | fe127c87ad15acd732e2313cc6b2ddbe211cf65e (patch) | |
tree | 5afeb7a69d937ad04a497fe64cc1f38f8ed16e7c /mail/mailman/pkg-install | |
parent | fec9281bc4c6f80e4a85951fd8f254a178f9e28e (diff) |
Notes
Diffstat (limited to 'mail/mailman/pkg-install')
-rw-r--r-- | mail/mailman/pkg-install | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/mail/mailman/pkg-install b/mail/mailman/pkg-install index 16f6ff16a700..6fb4173e5fb9 100644 --- a/mail/mailman/pkg-install +++ b/mail/mailman/pkg-install @@ -59,31 +59,21 @@ create_crontab() { } +fix_perms() { + echo -n "Checking (and fixing) permissions... " + %%MAILMANDIR%%/bin/check_perms -f >/dev/null 2>&1 + echo "done." +} + case $2 in PRE-INSTALL) - if which -s pw && which -s lockf; then - : - else - cat <<EOF - -This system looks like a pre-2.2 version of FreeBSD. I see that it -is missing the "lockf" and/or "pw" utilities. I need these utilities. -Please get them and install them, and try again. You can get the -sources from: - - ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/src/usr.bin/lockf.tar.gz - ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/src/usr.sbin/pw.tar.gz - -EOF - exit 1 - fi - make_account %%USER%% %%UID%% %%GROUP%% %%GID%% \ "Mailman User" "%%MAILMANDIR%%" "/sbin/nologin" ;; POST-INSTALL) create_crontab %%USER%% "%%MAILMANDIR%%/cron/crontab.in" + fix_perms ;; esac |