aboutsummaryrefslogtreecommitdiff
path: root/mail/assp/files/periodic-assp.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'mail/assp/files/periodic-assp.sh.in')
-rw-r--r--mail/assp/files/periodic-assp.sh.in31
1 files changed, 0 insertions, 31 deletions
diff --git a/mail/assp/files/periodic-assp.sh.in b/mail/assp/files/periodic-assp.sh.in
deleted file mode 100644
index af074b41acfe..000000000000
--- a/mail/assp/files/periodic-assp.sh.in
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# Run ASSP's nightly housekeeping script, rebuildspamdb.pl
-# Delete old ASSP log files
-
-cd %%ASSP_HOME%%
-
-if [ ! -f %%DATADIR%%/rebuildspamdb.pl ]
-then
- echo "%%DATADIR%%/rebuildspamdb.pl does not exist"
- rc_spamdb=2
-else
- echo ""
- echo "Running ASSP rebuildspamdb.pl:"
- %%PERL%% %%DATADIR%%/rebuildspamdb.pl && rc_spamdb=0 || rc_spamdb=3
- chown -R %%ASSP_USER%%:%%ASSP_GROUP%% %%ASSP_HOME%%
-fi
-
-. /etc/rc.subr
-name=assp
-rcvar=`set_rcvar`
-load_rc_config $name
-: ${assp_logexpire="45"}
-
-echo ""
-echo "Removing old ASSP log files:"
-find -L . -name '*.maillog.txt' -mtime +$assp_logexpire -exec ls -l {} \; -exec rm {} \;
-
-exit $rc_spamdb