#!/bin/bash

donefile="$DONEDIR/$MODNAME.done"
CHECK_FILES="
	/etc/aliases
	/etc/postfix/aliases-local
"

[ -f $donefile ] && {
	tmp=`ls -d * $CHECK_FILES 2>/dev/null`
	changed_files=`find $tmp -type f -newer $donefile 2>/dev/null`
}

[ "X$changed_files" != "X" ] && {
	changed_message=`echo $changed_files`
	changed_message=`printf "new: %-50.50s .." "$changed_message"`
	echo "$changed_message"
	exit 1	# out of date
}

exit 0	# up to date
