mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-11-04 04:49:29 +00:00 
			
		
		
		
	Update zoraxy.sh
fix update
This commit is contained in:
		
							parent
							
								
									7446dc4c73
								
							
						
					
					
						commit
						a95657947d
					
				
							
								
								
									
										15
									
								
								ct/zoraxy.sh
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								ct/zoraxy.sh
									
									
									
									
									
								
							@ -58,16 +58,15 @@ if [[ ! -d /opt/zoraxy/src ]]; then msg_error "No ${APP} Installation Found!"; e
 | 
			
		||||
msg_info "Updating $APP"
 | 
			
		||||
systemctl stop zoraxy
 | 
			
		||||
cd /opt/zoraxy/src
 | 
			
		||||
if ! git pull; then
 | 
			
		||||
  echo "Already up to date."
 | 
			
		||||
  systemctl start zoraxy
 | 
			
		||||
  echo "No update required."
 | 
			
		||||
  exit
 | 
			
		||||
systemctl stop zoraxy
 | 
			
		||||
if git pull | grep -q 'Already up to date.'; then
 | 
			
		||||
  msg_ok "Already up to date. No update required."
 | 
			
		||||
else
 | 
			
		||||
  go mod tidy
 | 
			
		||||
  go build
 | 
			
		||||
  msg_ok "Updated $APP"
 | 
			
		||||
fi
 | 
			
		||||
go mod tidy
 | 
			
		||||
go build
 | 
			
		||||
systemctl start zoraxy
 | 
			
		||||
msg_ok "Updated $APP"
 | 
			
		||||
exit
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user