From de7b5221227192e34a1d373d9fd521426e7977d7 Mon Sep 17 00:00:00 2001 From: Paul Brown <67805647+pb-dod@users.noreply.github.com> Date: Tue, 13 Aug 2024 09:34:06 -0500 Subject: [PATCH] Prevent permissions error on rancher plist file (#101) Fixes: ``` Failed to load the deployment profile Error reading file /Users/kevin.maldonado/Library/Preferences/io.rancherdesktop.profile.defaults.plist: Error: EACCES: permission denied, open '/Users/kevin.maldonado/Library/Preferences/io.rancherdesktop.profile.defaults.plist' ``` --- VERSION | 2 +- formula/ih-core.rb | 2 +- lib/core/rancher/step.sh | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 1ec9b0b..a2d633d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.60 +0.1.61 diff --git a/formula/ih-core.rb b/formula/ih-core.rb index 55050a7..fbc13aa 100644 --- a/formula/ih-core.rb +++ b/formula/ih-core.rb @@ -1,5 +1,5 @@ class IhCore < Formula - VERSION="0.1.60" + VERSION="0.1.61" 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 f8dcc68..981c2b7 100644 --- a/lib/core/rancher/step.sh +++ b/lib/core/rancher/step.sh @@ -123,6 +123,8 @@ function ih::setup::core.rancher::install() { echo "A configuration file for Rancher Desktop will be copied to your system" echo "You may be required to enter your password" sudo cp "$TEMP_PLIST_DST" "$PLIST_DST" + sudo chown $USER:staff "$PLIST_DST" + sudo chmod 644 "$PLIST_DST" # Check if Rancher was installed manually brew list rancher >/dev/null 2>&1