forked from coolaj86/goldilocks.js
		
	possibly multiple installers
This commit is contained in:
		
							parent
							
								
									41d36a4eb9
								
							
						
					
					
						commit
						0a0f37f85c
					
				@ -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")'
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user