From a5acb59a3b474ed247e5a8f2ffbe6aa1af2c14e5 Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Fri, 2 Oct 2015 13:04:57 +0000 Subject: [PATCH] Fixes on deployment --- scripts/containers/deploy.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/containers/deploy.sh b/scripts/containers/deploy.sh index 412187e5..d121e17e 100644 --- a/scripts/containers/deploy.sh +++ b/scripts/containers/deploy.sh @@ -154,10 +154,15 @@ EOF echo echo "${bold}> Checking if Orchestra is serving at https://${ip_addr}/admin/${normal} ..." if [[ $(curl https://$ip_addr/admin/ -I -k -s | grep 'HTTP/1.1 302 FOUND') ]]; then - echo -e "${bold} ** Orchestra appears to be working!${normal}\n" + echo "${bold} ** Orchestra appears to be working!${normal}" + if [[ $noinput == '--noinput' ]]; then + echo -e "${bold} username: $user${normal}" + echo -e "${bold} password: orchestra" + fi else - echo -e "${bold} ** Err. Orchestra is not responding responding at https://${ip_addr}/admin/${normal}\n" >&2 + echo "${bold} ** Err. Orchestra is not responding responding at https://${ip_addr}/admin/${normal}" >&2 fi + echo } # Wrap it all on a function to avoid partial executions when running through wget/curl