From a2e7a9ac382be2fcad943b404d04be870aa7291e Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Mon, 14 Jul 2008 19:20:26 +0000 Subject: bcfg2-cron: perform existence checks after reading /etc/{sysconfig,default}/bcfg2 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4783 ce84e21b-d406-0410-9b95-82705330c041 --- tools/bcfg2-cron | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/bcfg2-cron') diff --git a/tools/bcfg2-cron b/tools/bcfg2-cron index cba5f4de1..fe0e6e90d 100755 --- a/tools/bcfg2-cron +++ b/tools/bcfg2-cron @@ -21,12 +21,12 @@ BCFG2_OPTIONS="-q" BCFG2_BIN=/usr/sbin/bcfg2 BCFG2_CFG=/etc/bcfg2.conf -# Check that configuration and executable exists -[ -x ${BCFG2_BIN} -a -e ${BCFG2_CFG} ] || exit 1 - # Read the configuration from /etc/default/bcfg2 [ -e /etc/default/bcfg2 ] && . /etc/default/bcfg2 +# Check that configuration and executable exists +[ -x ${BCFG2_BIN} -a -e ${BCFG2_CFG} ] || exit 1 + invoke_bcfg2 () { # Invoke bcfg2 if enabled if [ ${BCFG2_ENABLED} -eq 1 ]; then -- cgit v1.2.3-1-g7c22