moving variable decl. until after config is loaded
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 8 Feb 2008 17:35:04 +0000 (17:35 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 8 Feb 2008 17:35:04 +0000 (17:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8700 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/support-scripts/brick_ctl.sh

index 35e01c0..f42c7a3 100755 (executable)
@@ -27,8 +27,6 @@
 [ -f ~/.bashrc ] && . ~/.bashrc
 
 DEFAULT_CONFIG=~/.oils_brick.cfg
-LOCAL_BASE="osrf_ctl.sh -d $OSRF_PID_DIR -c $OSRF_CONFIG";
-DRONE_BASE=". /etc/profile && osrf_ctl.sh -d $OSRF_PID_DIR -c $OSRF_CONFIG";
 
 
 # -------------------------------------------------------------------
@@ -98,6 +96,8 @@ fi;
 # make sure an action was specified
 [ -z "$OPT_ACTION" ] && usage;
 
+LOCAL_BASE="osrf_ctl.sh -d $OSRF_PID_DIR -c $OSRF_CONFIG";
+DRONE_BASE=". /etc/profile && osrf_ctl.sh -d $OSRF_PID_DIR -c $OSRF_CONFIG";
 
 # -------------------------------------------------------------------
 # Runs DRONE_ACT on the drones, then LOCAL_ACT on the local machine