[MM-53840] Add migration workflow (#24211)

Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2023-08-16 10:09:11 +03:00
коммит произвёл GitHub
родитель 0e75982f2b
Коммит 83652aa3c2
8 изменённых файлов: 152 добавлений и 7 удалений

Просмотреть файл

@@ -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