Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CBRD-25336] modify ha_make_slave.sh script to use $CUBRID_TMP and $TMPDIR #5281

Merged
merged 1 commit into from
Jun 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion contrib/scripts/ha/ha_make_slavedb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,21 @@ function ssh_cubrid()

host=$1
command=$2
envvar="export PATH=$PATH; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH; export CUBRID=$CUBRID; export CUBRID_DATABAES=$CUBRID_DATABASES;"

if [ "__${CUBRID_TMP}__" != "____" ]; then
envvar+=" export CUBRID_TMP=$CUBRID_TMP;"
fi

if [ "__${TMPDIR}__" != "____" ]; then
envvar+=" export TMPDIR=$TMPDIR;"
fi

if $verbose; then
echo "[$cubrid_user@$host]$ $command"
fi
ssh -p $ssh_port -t $cubrid_user@$host "export PATH=$PATH; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH; export CUBRID=$CUBRID; export CUBRID_DATABASES=$CUBRID_DATABASES; export CUBRID_TMP=$CUBRID_TMP; export TMPDIR=$TMPDIR; $command"

ssh -p $ssh_port -t $cubrid_user@$host "$envvar $command"
}

function ssh_expect()
Expand Down
Loading