mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Fix for test-data make target (#18229)
* Fix for the test-data command. * Sleep and warn about needing local mode enabled. * Improved server start synchro.
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
total=0
|
||||
max_wait_seconds=60
|
||||
|
||||
echo "waiting $max_wait_seconds seconds for the server to start"
|
||||
|
||||
while [[ "$total" -le "$max_wait_seconds" ]]; do
|
||||
if bin/mmctl system status --local 2> /dev/null; then
|
||||
exit 0
|
||||
else
|
||||
((total=total+1))
|
||||
printf "."
|
||||
sleep 1
|
||||
fi
|
||||
done
|
||||
|
||||
printf "\nserver didn't start in $max_wait_seconds seconds\n"
|
||||
|
||||
exit 1
|
||||
Reference in New Issue
Block a user