mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Fix RELEASE fetch (#6237)
This commit is contained in:
		@@ -27,7 +27,7 @@ function update_script() {
 | 
				
			|||||||
    exit 1
 | 
					    exit 1
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  RELEASE=$(curl -fsSL https://teamspeak.com/en/downloads/#server | sed -n '/teamspeak3-server_linux_amd64-/ { s/.*teamspeak3-server_linux_amd64-\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p; q }')
 | 
					  set +o pipefail && RELEASE=$(curl -fsSL https://teamspeak.com/en/downloads/#server | sed -n 's/.teamspeak3-server_linux_amd64-([0-9]+.[0-9]+.[0-9]+)./\1/p' | head -1) && set -o pipefail
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if [ "${RELEASE}" != "$(cat ~/.teamspeak-server)" ] || [ ! -f ~/.teamspeak-server ]; then
 | 
					  if [ "${RELEASE}" != "$(cat ~/.teamspeak-server)" ] || [ ! -f ~/.teamspeak-server ]; then
 | 
				
			||||||
    msg_info "Updating ${APP} LXC"
 | 
					    msg_info "Updating ${APP} LXC"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,7 +20,7 @@ $STD apk add --no-cache \
 | 
				
			|||||||
  libc6-compat
 | 
					  libc6-compat
 | 
				
			||||||
msg_ok "Installed dependencies"
 | 
					msg_ok "Installed dependencies"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RELEASE=$(curl -fsSL https://teamspeak.com/en/downloads/#server | sed -n '/teamspeak3-server_linux_amd64-/ { s/.*teamspeak3-server_linux_amd64-\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p; q }')
 | 
					set +o pipefail && RELEASE=$(curl -fsSL https://teamspeak.com/en/downloads/#server | sed -n 's/.teamspeak3-server_linux_amd64-([0-9]+.[0-9]+.[0-9]+)./\1/p' | head -1) && set -o pipefail
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Installing Teamspeak Server v${RELEASE}"
 | 
					msg_info "Installing Teamspeak Server v${RELEASE}"
 | 
				
			||||||
mkdir -p /opt/teamspeak-server
 | 
					mkdir -p /opt/teamspeak-server
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user