mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-13909 Fix wsrep_sst_rsync fails on debian
Fix for the following error messages during SST: /usr/local/mysql/bin/wsrep_sst_rsync: 258: /usr/local/mysql/bin/wsrep_sst_rsync: [[: not found /usr/local/mysql/bin/wsrep_sst_rsync: 263: /usr/local/mysql/bin/wsrep_sst_rsync: [[: not found /usr/local/mysql/bin/wsrep_sst_rsync: 268: /usr/local/mysql/bin/wsrep_sst_rsync: [[: not found
This commit is contained in:
@ -244,18 +244,18 @@ parse_cnf()
|
|||||||
# finally get the variable value (if variables has been specified multiple time use the last value only)
|
# finally get the variable value (if variables has been specified multiple time use the last value only)
|
||||||
|
|
||||||
# look in group+suffix
|
# look in group+suffix
|
||||||
if [[ -n $WSREP_SST_OPT_CONF_SUFFIX ]]; then
|
if [ -n $WSREP_SST_OPT_CONF_SUFFIX ]; then
|
||||||
reval=$($MY_PRINT_DEFAULTS -c $WSREP_SST_OPT_CONF "${group}${WSREP_SST_OPT_CONF_SUFFIX}" | awk -F= '{if ($1 ~ /_/) { gsub(/_/,"-",$1); print $1"="$2 } else { print $0 }}' | grep -- "--$var=" | cut -d= -f2- | tail -1)
|
reval=$($MY_PRINT_DEFAULTS -c $WSREP_SST_OPT_CONF "${group}${WSREP_SST_OPT_CONF_SUFFIX}" | awk -F= '{if ($1 ~ /_/) { gsub(/_/,"-",$1); print $1"="$2 } else { print $0 }}' | grep -- "--$var=" | cut -d= -f2- | tail -1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# look in group
|
# look in group
|
||||||
if [[ -z $reval ]]; then
|
if [ -z $reval ]; then
|
||||||
reval=$($MY_PRINT_DEFAULTS -c $WSREP_SST_OPT_CONF $group | awk -F= '{if ($1 ~ /_/) { gsub(/_/,"-",$1); print $1"="$2 } else { print $0 }}' | grep -- "--$var=" | cut -d= -f2- | tail -1)
|
reval=$($MY_PRINT_DEFAULTS -c $WSREP_SST_OPT_CONF $group | awk -F= '{if ($1 ~ /_/) { gsub(/_/,"-",$1); print $1"="$2 } else { print $0 }}' | grep -- "--$var=" | cut -d= -f2- | tail -1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# use default if we haven't found a value
|
# use default if we haven't found a value
|
||||||
if [[ -z $reval ]]; then
|
if [ -z $reval ]; then
|
||||||
[[ -n $3 ]] && reval=$3
|
[ -n $3 ] && reval=$3
|
||||||
fi
|
fi
|
||||||
echo $reval
|
echo $reval
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user