fix: undefined_options in sysbench cmd

This commit is contained in:
obdev
2023-02-27 08:11:20 +00:00
committed by ob-robot
parent 1676249851
commit c52072303b
2 changed files with 7 additions and 5 deletions

View File

@ -9,8 +9,12 @@ else
fi
export OBD_BIN=${_OBD_BIN:-$DEP_PATH/usr/bin/obd}
alias obd="${OBD_BIN}"
export OBD_HOME=$DIR/tools/deploy
export OBD_INSTALL_PRE=$DEP_PATH
export OBD_HOME=${_OBD_HOME:-$DIR/tools/deploy}
export OBD_INSTALL_PRE=${_OBD_INSTALL_PRE:-$DEP_PATH}
if [ ${_OBD_PROFILE} ]; then
source ${_OBD_PROFILE}
fi
if [ -f $OBD_INSTALL_PRE/etc/profile.d/obd.sh ]
then

View File

@ -44,8 +44,6 @@ function variables_parpare {
OBCLIENT_BIN=$DEP_PATH/u01/obclient/bin/obclient
MYSQLTEST_BIN=$DEP_PATH/u01/obclient/bin/mysqltest
export OBD_HOME=$DEPLOY_PATH
export OBD_INSTALL_PRE=$DEP_PATH
DEFAULT_DEPLOY_NAME_FILE=$OBD_HOME/.obd/.default_deploy
}
@ -578,7 +576,7 @@ function main() {
then
NEED_REBOOT="1"
fi
if [[ ! -f $DEPLOY_PATH/.obd/.obd_environ || "$(grep '"OBD_DEV_MODE": "1"' $DEPLOY_PATH/.obd/.obd_environ)" == "" ]]
if [[ ! -f $OBD_HOME/.obd/.obd_environ || "$(grep '"OBD_DEV_MODE": "1"' $OBD_HOME/.obd/.obd_environ)" == "" ]]
then
obd devmode enable || (echo "Exec obd cmd failed. If your branch is based on 3.1_opensource_release, please go to the deps/3rd directory and execute 'bash dep_create.sh all' to install obd." && exit 1)
obd env set OBD_LOCK_MODE 1