mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[MM-53840] Add migration workflow (#24211)
This commit is contained in:
committed by
GitHub
parent
0e75982f2b
commit
83652aa3c2
@@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
total=0
|
||||
max_wait_seconds=60
|
||||
MAX_WAIT_SECONDS="${MAX_WAIT_SECONDS:=60}"
|
||||
|
||||
echo "waiting $max_wait_seconds seconds for the server to start"
|
||||
echo "waiting $MAX_WAIT_SECONDS seconds for the server to start"
|
||||
|
||||
while [[ "$total" -le "$max_wait_seconds" ]]; do
|
||||
while [[ "$total" -le "$MAX_WAIT_SECONDS" ]]; do
|
||||
if bin/mmctl system status --local 2> /dev/null; then
|
||||
exit 0
|
||||
else
|
||||
@@ -15,6 +15,6 @@ while [[ "$total" -le "$max_wait_seconds" ]]; do
|
||||
fi
|
||||
done
|
||||
|
||||
printf "\nserver didn't start in $max_wait_seconds seconds\n"
|
||||
printf "\nserver didn't start in $MAX_WAIT_SECONDS seconds\n"
|
||||
|
||||
exit 1
|
||||
Reference in New Issue
Block a user