From c631e5f97bbc14564af56f82f41d6ec92d04a81f Mon Sep 17 00:00:00 2001 From: ronivay Date: Mon, 26 Feb 2018 07:19:37 +0200 Subject: [PATCH] Check port status only after latest start --- xo-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xo-install.sh b/xo-install.sh index 0ae7573..9a8718f 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -237,7 +237,7 @@ function InstallXO { done EOF - if [[ $(journalctl -u xo-server | grep "http:\/\/\[::\]:$PORT") ]]; then + if [[ $(journalctl -u xo-server | sed -n 'H; /Starting XO Server/h; ${g;p;}' | grep "http:\/\/\[::\]:$PORT") ]]; then echo echo "WebUI started in port $PORT" echo "Default username: admin@admin.net password: admin"