Skip to content

Commit

Permalink
Fix install script for darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
ameshkov committed Feb 11, 2021
1 parent a623ac6 commit 6b8a46e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,13 @@ main() {

download "${URL}" "${PKG_NAME}" || error_exit "Cannot download the package"

unpack "${PKG_NAME}" "${OUT_DIR}" "${PKG_EXT}" || error_exit "Cannot unpack the package"
if [ "${OS}" = "darwin" ]; then
# TODO: remove this after v0.106.0 release
mkdir "${AGH_DIR}"
unpack "${PKG_NAME}" "${AGH_DIR}" "${PKG_EXT}" || error_exit "Cannot unpack the package"
else
unpack "${PKG_NAME}" "${OUT_DIR}" "${PKG_EXT}" || error_exit "Cannot unpack the package"
fi

# Install AdGuard Home service and run it.
( cd "${AGH_DIR}" && ./AdGuardHome -s install || error_exit "Cannot install AdGuardHome as a service" )
Expand Down

0 comments on commit 6b8a46e

Please sign in to comment.