Install AGH to /Applications on MacOS

This commit is contained in:
Andrey Meshkov 2021-02-01 00:14:47 +03:00
parent cd88137333
commit 7042811ee6
1 changed files with 7 additions and 1 deletions

View File

@ -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