From 8517a8d7967c94101487d8346d4b9cc43e89dbb6 Mon Sep 17 00:00:00 2001 From: Hugues Morisset Date: Mon, 19 Mar 2018 17:55:01 +0100 Subject: [PATCH] Print dots while server is booting --- scripts/scw.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/scw.sh b/scripts/scw.sh index 1c8800e..7453aa0 100644 --- a/scripts/scw.sh +++ b/scripts/scw.sh @@ -119,7 +119,7 @@ boot_server() { server_id=$1 # Try to boot the server - loginfo "Booting server..." + [ $LOG_LEVEL -gt 2 ] && echo -n "[INFO]" "Booting server..." maximum_boot_tries=3 boot_timeout=600 failed=true @@ -137,7 +137,9 @@ boot_server() { break fi sleep 5 + [ $LOG_LEVEL -gt 2 ] && echo -n "." done + [ $LOG_LEVEL -gt 2 ] && echo "" fi sleep 1 if (get_server $server_id | jq -r '.server.state' | grep -qxE 'running'); then