From 1e2dcb74bd51b41d3ff2e078504a066a9b6f9488 Mon Sep 17 00:00:00 2001 From: ronivay Date: Sun, 22 Jul 2018 23:13:18 +0300 Subject: [PATCH] minor fixes and improvements --- xo-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xo-install.sh b/xo-install.sh index 7873b74..6ea80d2 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -144,6 +144,7 @@ function InstallDependenciesDebian { function InstallXOPlugins { if [[ "$PLUGINS" ]] && [[ ! -z "$PLUGINS" ]]; then + echo echo "Installing plugins defined in PLUGINS variable" echo local PLUGINSARRAY=($(echo "$PLUGINS" | tr ',' ' ')) @@ -202,7 +203,7 @@ function InstallXO { echo echo "xo-server and xo-web build quite a while. Grab a cup of coffee and lay back" echo - echo -n "Running installation" + echo -n "Running installation..." cd $INSTALLDIR/xo-builds/xen-orchestra-$TIME && yarn >/dev/null && yarn build >/dev/null echo "done" @@ -274,6 +275,9 @@ function InstallXO { echo "Starting xo-server..." /bin/systemctl start xo-server >/dev/null + # no need to exit on errors anymore + set +x + timeout 60 bash <<-"EOF" while [[ -z $(journalctl -u xo-server | sed -n 'H; /Starting XO Server/h; ${g;p;}' | grep "http:\/\/\[::\]:$PORT") ]]; do echo "waiting port to be open"