From f0a4766c837b68e7fa7edcd9306d6223df590b23 Mon Sep 17 00:00:00 2001 From: thebluepotato Date: Wed, 10 Jun 2020 06:24:12 +0200 Subject: [PATCH] macos: Update install_service_macos (#8933) --- install_service_macos | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/install_service_macos b/install_service_macos index 44b5097d8..0415ac1ae 100755 --- a/install_service_macos +++ b/install_service_macos @@ -6,7 +6,7 @@ BOLDGREEN="$(printf '\033[1;32m')" NC="$(printf '\033[0m')" # No Color # Stop and unload the service if it's running -launchctl remove org.user.Jackett +launchctl unload ~/Library/LaunchAgents/org.user.Jackett.plist &>/dev/null # Move working directory to Jackett's cd "$(dirname "$0")" @@ -55,18 +55,20 @@ cat >~/Library/LaunchAgents/org.user.Jackett.plist </dev/null +if [[ $qstr ]]; then + echo "Removing Jackett executable and all .dylib and .dll files from quarantine..." + qstr="00c1${qstr:4}" + xattr -w com.apple.quarantine $qstr jackett + xattr -w com.apple.quarantine $qstr *.{dylib,dll} +fi # Run the agent launchctl load ~/Library/LaunchAgents/org.user.Jackett.plist # Check that it's running if [[ $(launchctl list | grep org.user.Jackett) ]]; then -echo "${BOLDGREEN}Agent successfully installed and launched!${NC}" + echo "${BOLDGREEN}Agent successfully installed and launched!${NC}" else cat << EOL ${BOLDRED}ERROR${NC}: Could not launch agent. The installation might have failed.