galera SST scripts: correction of the grep pattern

This commit is contained in:
Julius Goryavsky 2024-11-19 03:08:20 +01:00
parent 540288ac7c
commit 76fc26d632
2 changed files with 2 additions and 2 deletions

View file

@ -848,7 +848,7 @@ recv_joiner()
wsrep_log_error "receiving process ended without creating" \
"magic file ($MAGIC_FILE)"
wsrep_log_info "Contents of datadir:"
wsrep_log_info "$(ls -l "$dir/"*)"
wsrep_log_info "$(ls -l "$dir"/*)"
exit 32
fi

View file

@ -108,7 +108,7 @@ check_pid_and_port()
if [ $ss_available -ne 0 -o $sockstat_available -ne 0 ]; then
if [ $ss_available -ne 0 ]; then
port_info=$($socket_utility $ss_opts -t "( sport = :$port )" 2>/dev/null | \
grep -E '[[:space:]]users:[[:space:]]?(' | \
grep -E '[[:space:]]users:[[:space:]]?\(' | \
grep -o -E "([^[:space:]]+[[:space:]]+){4}[^[:space:]]+" || :)
else
if [ $sockstat_available -gt 1 ]; then