From 0a0f37f85c8974875d20e2df9cd2e403b728a087 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 5 May 2017 01:37:53 -0600 Subject: [PATCH] possibly multiple installers --- install.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 2d5515a..84fb5f9 100644 --- a/install.sh +++ b/install.sh @@ -114,11 +114,16 @@ install_for_launchd() install_service() { + installable="" if [ -d "$PREFIX/etc/systemd/system" ]; then install_for_systemd - elif [ -d "/Library/LaunchAgents" ]; then + installable="true" + fi + if [ -d "/Library/LaunchDaemons" ]; then install_for_launchd - else + installable="true" + fi + if [ -z "$installable" ]; then echo "" echo "Unknown system service init type. You must install as a system service manually." echo '(please file a bug with the output of "uname -a")'