From 68e3fc22508ae378a806db836f54a2821352a6ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roni=20V=C3=A4yrynen?= Date: Sun, 30 Jan 2022 14:15:36 +0200 Subject: [PATCH] print xo-proxy json config always if configuration file was generated --- xo-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xo-install.sh b/xo-install.sh index 72da5c4..9639984 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -841,8 +841,8 @@ function VerifyServiceStart { fi if [[ "$XO_SVC" == "xo-proxy" ]]; then echo -e " ${COLOR_GREEN}Proxy started in port $PORT. Make sure you have firewall rules in place to allow access from xen orchestra.${COLOR_N}" - # print json config only when install was ran and skip while Updating - if [[ "$TASK" == "Installation" ]] && [[ "$PROXY_CONFIG_UPDATED" == "true" ]]; then + # print json config only if config file was generated + if [[ "$PROXY_CONFIG_UPDATED" == "true" ]]; then echo -e " ${COLOR_GREEN}Save following line as json file and use config import in Xen Orchestra to add proxy${COLOR_N}" echo echo "{\"proxies\":[{\"authenticationToken\":\"${PROXY_TOKEN}\",\"name\":\"${PROXY_NAME}\",\"vmUuid\":\"${PROXY_VM_UUID}\",\"id\":\"${PROXY_RANDOM_UUID}\"}]}"