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")'