Commits

Zhang Huangbin committed 415550a

Add cron job to cleanup Amavisd database.

  • Participants
  • Parent commits 92751d7

Comments (0)

Files changed (1)

File iRedMail/functions/iredadmin.sh

     perl -pi -e 's#^(amavisd_enable_quarantine =).*#${1} True#' settings.py
     perl -pi -e 's#^(amavisd_quarantine_port =).*#${1} "$ENV{AMAVISD_QUARANTINE_PORT}"#' settings.py
 
+    cat >> ${CRON_SPOOL_DIR}/root <<EOF
+# ${PROG_NAME}: Cleanup Amavisd database
+1  2   *   *   *   python ${IREDADMIN_HTTPD_ROOT}/tools/cleanup_amavisd_db.py &>/dev/null
+EOF
+
     cat >> ${TIP_FILE} <<EOF
 iRedAdmin - official web-based admin panel:
     * Version: ${IREDADMIN_VERSION}