summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/bcfg2-cron6
1 files changed, 3 insertions, 3 deletions
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