possibly multiple installers

This commit is contained in:
AJ ONeal 2017-05-05 01:37:53 -06:00
parent 41d36a4eb9
commit 0a0f37f85c
1 changed files with 7 additions and 2 deletions

View File

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