diff options
author | Greg Larkin <glarkin@FreeBSD.org> | 2013-07-18 20:55:32 +0000 |
---|---|---|
committer | Greg Larkin <glarkin@FreeBSD.org> | 2013-07-18 20:55:32 +0000 |
commit | cd05cb5126170526ba5b5be6045e52744b570daa (patch) | |
tree | 87eb451d5f25025e443bc15e009ef7a8c73e5a0d /security/logcheck/files | |
parent | bca949c6dec3848167c6f3101345817194b17677 (diff) |
- Added an option to control installation of the crontab file. The
option defaults to yes during interactive installation, and the crontab
file is not installed during non-interactive installation.
Requested by: espen@tagestad.no (via email)
Notes
Notes:
svn path=/head/; revision=323256
Diffstat (limited to 'security/logcheck/files')
-rw-r--r-- | security/logcheck/files/pkg-install.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/security/logcheck/files/pkg-install.in b/security/logcheck/files/pkg-install.in index cb17b01e334b..4f4f6ef3e314 100644 --- a/security/logcheck/files/pkg-install.in +++ b/security/logcheck/files/pkg-install.in @@ -25,6 +25,7 @@ PRE-INSTALL) fi ;; POST-INSTALL) + if [ "%%CRON%%" = "CRON" ]; then if [ -f %%EXAMPLESDIR%%/crontab.in ] ; then if /usr/bin/crontab -u "${user}" -l >/tmp/logchecktab$$ 2>&1 ; then if test -s /tmp/logchecktab$$; then @@ -48,6 +49,13 @@ POST-INSTALL) fi rm -f /tmp/logchecktab$$ fi + else + echo "---> Crontab file was not installed for user \"${user}\"" + if [ -f %%EXAMPLESDIR%%/crontab.in ]; then + echo "---> A sample crontab file can be found in %%EXAMPLESDIR%%/crontab.in" + echo "---> for manual installation." + fi + fi for f in ${configfiles}; do if [ ! -e %%PREFIX%%/etc/logcheck/${f} ]; then |