From 998d8ce0dc6678a75d82e26b51f726b7cea18237 Mon Sep 17 00:00:00 2001 From: Daniel Soto <120605455+DanielSotoEstrada@users.noreply.github.com> Date: Wed, 22 Mar 2023 14:23:38 -0700 Subject: [PATCH] DT-125 check if Rancher is Running and shut it down (#42) If Rancher Desktop is running and we try to update it a blank screen will be displayed and we have to restart the GUI manually. In order to avoid this we shutdown the application before we try to update it. --- VERSION | 2 +- formula/ih-core.rb | 2 +- lib/core/rancher/step.sh | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 04c5555..f8bc4c6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.17 +0.1.18 diff --git a/formula/ih-core.rb b/formula/ih-core.rb index dc902ef..daf0373 100644 --- a/formula/ih-core.rb +++ b/formula/ih-core.rb @@ -1,5 +1,5 @@ class IhCore < Formula - VERSION="0.1.17" + VERSION="0.1.18" desc "Brew formula for installing core tools used at Included Health engineering." homepage "https://github.com/ConsultingMD/homebrew-ih-public" license "CC BY-NC-ND 4.0" diff --git a/lib/core/rancher/step.sh b/lib/core/rancher/step.sh index 6313067..cf5901f 100644 --- a/lib/core/rancher/step.sh +++ b/lib/core/rancher/step.sh @@ -32,7 +32,9 @@ function ih::setup::core.rancher::install() { cp "${THIS_DIR}/io.rancherdesktop.profile.defaults.plist" "$HOME/Library/Preferences/io.rancherdesktop.profile.defaults.plist" - + if command -v rdctl; then + rdctl shutdown + fi CASKSUCCEEDED=1 # Installation and configuration of Rancher Desktop