#!/bin/sh
# DocumentId:	$Id: update-dpsyco-cfengine,v 1.3 2001/12/07 15:17:13 ola Exp $
# Author:	$Author: ola $
# Date:		$Date: 2001/12/07 15:17:13 $
# Summary:
#	Apply cfengine configs.

. /etc/dpsyco/defaults.conf

TESTNFS="/"
. /usr/share/dpsyco/checknfs.test

if [ -d "$CFENGINESRC" ] ; then
    find $CFENGINESRC -depth -maxdepth 2 -type f -name "*.conf" | sort | {
	while read LINE ; do
	    if ! cfengine -f $LINE ; then
		echo "ERROR occured when applying cfconfig $LINE."
	    fi
	done
    }
fi
