From 76f4826ff7b0998d34a61f9f29a3be89ad1370ff Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Fri, 17 Feb 2023 17:12:36 +0100 Subject: [PATCH] package: fix ARM name and owner of prefix --- package/scripts/postinstall | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/scripts/postinstall b/package/scripts/postinstall index 7ea0389bb5..2db8e8483b 100755 --- a/package/scripts/postinstall +++ b/package/scripts/postinstall @@ -18,7 +18,7 @@ if [[ $(uname -m) == "x86_64" ]] then target="/usr/local" else - target="/opt/Homebrew" + target="/opt/homebrew" fi loggedInUser=$(echo "show State:/Users/ConsoleUser" | scutil | awk '/Name :/ { print $3 }') @@ -44,7 +44,8 @@ fi group=$(id -gn "${loggedInUser}") -install -d -o "${loggedInUser}" -g "${group}" "${target}" +install -d -o "root" -g "wheel" -m "0755" "${target}" + cp -RX "${tmp_brew}/" "${target}" # set permissions