Skip to content

Commit

Permalink
Fix error on recent pgrep versions
Browse files Browse the repository at this point in the history
pgrep: pattern that searches for process name longer than 15 characters will result in zero matches
Try `pgrep -f' option to match against the complete command line.

From pgrep 4.0.2 (Debian 12)
  • Loading branch information
fauust authored and vladbogo committed May 7, 2024
1 parent 5510103 commit bd1d53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bash_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ rpm_repoquery() {
wait_for_mariadb_upgrade() {
res=1
for i in {1..20}; do
if pgrep -i 'mysql_upgrade|mysqlcheck|mysqlrepair|mysqlanalyze|mysqloptimize|mariadb-upgrade|mariadb-check'; then
if pgrep -if 'mysql_upgrade|mysqlcheck|mysqlrepair|mysqlanalyze|mysqloptimize|mariadb-upgrade|mariadb-check'; then
bb_log_info "wait for mysql_upgrade to finish ($i)"
sleep 5
else
Expand Down

0 comments on commit bd1d53b

Please sign in to comment.