From 7042811ee6411c0278130f03d60a1eb7b92c738e Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Mon, 1 Feb 2021 00:14:47 +0300 Subject: [PATCH] Install AGH to /Applications on MacOS --- scripts/install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 1114c641..6ac8fa90 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -189,7 +189,13 @@ main() { SCRIPT_URL="https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh" URL="https://static.adguard.com/adguardhome/${CHANNEL}/${PKG_NAME}" - OUT_DIR=/opt + OUT_DIR="/opt" + if [ "${OS}" = "darwin" ]; then + # It may be important to install AdGuard Home to /Applications on MacOS + # Otherwise, it may not grant enough privileges to it + OUT_DIR="/Applications" + fi + AGH_DIR="${OUT_DIR}/AdGuardHome" # Root check