mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 04:50:47 -07:00
Avoiding "We can use mysqldump now"
This commit is contained in:
parent
441679a960
commit
b4dc63b72f
1 changed files with 6 additions and 2 deletions
|
@ -385,15 +385,19 @@ if [ ! -z "$DB_SYSTEM" ] && [ "$DB" != '*' ]; then
|
||||||
grants="$tmpdir/db/$database/conf/$database.$TYPE.$DBUSER"
|
grants="$tmpdir/db/$database/conf/$database.$TYPE.$DBUSER"
|
||||||
if [ ! -f "$dumpgz" ]; then
|
if [ ! -f "$dumpgz" ]; then
|
||||||
|
|
||||||
|
WAIT_LOOP_ENTERED=0
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
if pgrep -x "mysqldump" > /dev/null
|
if pgrep -x "mysqldump" > /dev/null
|
||||||
then
|
then
|
||||||
|
WAIT_LOOP_ENTERED=1
|
||||||
echo "Wait other mysqldump to finish"
|
echo "Wait other mysqldump to finish"
|
||||||
sleep 1
|
sleep 1
|
||||||
else
|
else
|
||||||
echo "We can use mysqldump now"
|
if [ "$WAIT_LOOP_ENTERED" -eq 1 ]; then
|
||||||
break
|
echo "We can use mysqldump now"
|
||||||
|
break
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue