mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Combines the following repositories into one: https://github.com/mattermost/mattermost-server https://github.com/mattermost/mattermost-webapp https://github.com/mattermost/focalboard https://github.com/mattermost/mattermost-plugin-playbooks
20 lines
382 B
Bash
Executable File
20 lines
382 B
Bash
Executable File
#!/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 |