12 lines
		
	
	
		
			315 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			315 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
| #!/bin/bash
 | |
| 
 | |
| # This file is used by deb and rpm packages.
 | |
| # FPM adds this as the after-install script.
 | |
| 
 | |
| if [ -x "/bin/systemctl" ]; then
 | |
|   # Reload and restart - this starts the application as user nobody.
 | |
|   /bin/systemctl daemon-reload
 | |
|   /bin/systemctl enable unifi-poller
 | |
|   /bin/systemctl restart unifi-poller
 | |
| fi
 |