Commits

dizzyd committed 62a57b1

Make sure to cd to the base directory in admin scripts

Comments (0)

Files changed (2)

rel/overlay/bin/riak

     exec sudo -u $RUNNER_USER -i $0 $@
 fi
 
+# Make sure CWD is set to runner base dir
+cd $RUNNER_BASE_DIR
+
 # Make sure log directory exists
 mkdir -p $RUNNER_LOG_DIR
 

rel/overlay/bin/riak-admin

     exec sudo -u $RUNNER_USER -i $0 $@
 fi
 
+# Make sure CWD is set to runner base dir
+cd $RUNNER_BASE_DIR
+
 # Extract the target node name from node.args
 NAME_ARG=`grep -e '-[s]*name' $RUNNER_ETC_DIR/vm.args`
 if [ -z "$NAME_ARG" ]; then