#!/bin/sh # # $FreeBSD: ports/security/pam_abl/files/190.clean-pam-abl.in,v 1.1 2006/09/01 18:34:03 pav Exp $ # # Purge pam_abl databases according to purge rules in config. # # If there is a global system configuration file, suck it in. # if [ -r /etc/defaults/periodic.conf ]; then . /etc/defaults/periodic.conf source_periodic_confs fi case "$daily_clean_pam_abl_enable" in [Yy][Ee][Ss]) echo "" echo "Purging pam_abl databases:" /usr/local/sbin/pam_abl -p -v ${daily_clean_pam_abl_config_file} [ $? -ne 0 ] && rc=3 || rc=0;; *) rc=0;; esac exit $rc