From edfaadc381824e796fba124e1f088b2edc5c0ee1 Mon Sep 17 00:00:00 2001 From: Ciprian Ciubotariu Date: Sun, 23 Jan 2022 20:32:15 +0200 Subject: [PATCH] Don't rely on the IS_RENEW variable --- deploy/rancher.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/deploy/rancher.sh b/deploy/rancher.sh index c34586b3..e61d7d53 100644 --- a/deploy/rancher.sh +++ b/deploy/rancher.sh @@ -261,10 +261,13 @@ rancher_deploy() { fi _debug IS_RENEW "$IS_RENEW" - if [ "$IS_RENEW" == "1" ] ; then +# if [ -n "$IS_RENEW" ] ; then _rancher_renew - else - _rancher_deploy - fi +# else +# _rancher_deploy +# fi + + _rancher_renew || _rancher_deploy + return $? }