diff options
author | Jean Milanez Melo <jmelo@FreeBSD.org> | 2006-05-12 18:28:39 +0000 |
---|---|---|
committer | Jean Milanez Melo <jmelo@FreeBSD.org> | 2006-05-12 18:28:39 +0000 |
commit | 4987b30a5db98b006447f7c6ce2d03c0a5da7d8c (patch) | |
tree | 6682bdfd03793679b0ab3b7f0a9ab7c3b8019c1a /mail | |
parent | 6e32a33cccbdcd2ae40a29b7a2bb78674cf3dc82 (diff) | |
download | ports-4987b30a5db98b006447f7c6ce2d03c0a5da7d8c.tar.gz ports-4987b30a5db98b006447f7c6ce2d03c0a5da7d8c.zip |
Notes
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mailman/pkg-deinstall | 6 | ||||
-rw-r--r-- | mail/mailman/pkg-install | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/mail/mailman/pkg-deinstall b/mail/mailman/pkg-deinstall index 93c125e19a01..05972ee6ebc5 100644 --- a/mail/mailman/pkg-deinstall +++ b/mail/mailman/pkg-deinstall @@ -13,8 +13,10 @@ DEINSTALL) /usr/bin/diff - %%MAILMANDIR%%/cron/crontab.in >/dev/null 2>&1 ; then echo "---> Zeroing crontab for \"%%USER%%\"" /usr/bin/crontab -u "%%USER%%" /dev/null - grep -v %%USER%% /var/cron/allow > /var/cron/allow.new - mv /var/cron/allow.new /var/cron/allow + if [ -e /var/cron/allow ]; then + grep -v %%USER%% /var/cron/allow > /var/cron/allow.new + mv /var/cron/allow.new /var/cron/allow + fi else echo "---> Crontab for \"%%USER%%\" not removed: please deinstall" echo "---> manually if you no-longer wish to use Mailman. eg:" diff --git a/mail/mailman/pkg-install b/mail/mailman/pkg-install index 72dcae989707..2441fa532116 100644 --- a/mail/mailman/pkg-install +++ b/mail/mailman/pkg-install @@ -51,7 +51,9 @@ POST-INSTALL) echo "---> Checking crontab(5) file for user \"%%USER%%\"" + if [ -e /var/cron/allow ]; then echo "%%USER%%" >> /var/cron/allow + fi if /usr/bin/crontab -u "%%USER%%" -l >/tmp/mmctab$$ 2>&1 ; then if test -s /tmp/mmctab$$; then |