mirror of
				https://github.com/tailscale/tailscale.git
				synced 2025-10-31 00:01:40 +01:00 
			
		
		
		
	* cmd/nginx-auth: add maintainer scripts Signed-off-by: Xe <xe@tailscale.com> * cmd/nginx-auth: add Expected-Tailnet header and documentation Signed-off-by: Xe <xe@tailscale.com>
		
			
				
	
	
		
			10 lines
		
	
	
		
			334 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			334 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| # $1 == 0 for uninstallation.
 | |
| # $1 == 1 for removing old package during upgrade.
 | |
| 
 | |
| systemctl daemon-reload >/dev/null 2>&1 || :
 | |
| if [ $1 -ge 1 ] ; then
 | |
|     # Package upgrade, not uninstall
 | |
|     systemctl stop tailscale.nginx-auth.service >/dev/null 2>&1 || :
 | |
|     systemctl try-restart tailscale.nginx-auth.socket >/dev/null 2>&1 || :
 | |
| fi
 |