mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	fix(wastebin): use tar asset (#4934)
* fix(wastebin): use tar asset
* and install script...
* testing
* Revert "testing"
This reverts commit 74d2fd163b.
			
			
This commit is contained in:
		@@ -64,8 +64,8 @@ EOF
 | 
			
		||||
 | 
			
		||||
    msg_info "Updating Wastebin"
 | 
			
		||||
    temp_file=$(mktemp)
 | 
			
		||||
    curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.zip" -o "$temp_file"
 | 
			
		||||
    $STD unzip -o $temp_file
 | 
			
		||||
    curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst" -o "$temp_file"
 | 
			
		||||
    tar -xf $temp_file
 | 
			
		||||
    cp -f wastebin /opt/wastebin/
 | 
			
		||||
    chmod +x /opt/wastebin/wastebin
 | 
			
		||||
    echo "${RELEASE}" >/opt/${APP}_version.txt
 | 
			
		||||
 
 | 
			
		||||
@@ -16,8 +16,8 @@ update_os
 | 
			
		||||
msg_info "Installing Wastebin"
 | 
			
		||||
temp_file=$(mktemp)
 | 
			
		||||
RELEASE=$(curl -fsSL https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
 | 
			
		||||
curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.zip" -o "$temp_file"
 | 
			
		||||
$STD unzip $temp_file
 | 
			
		||||
curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst" -o "$temp_file"
 | 
			
		||||
tar -xf $temp_file
 | 
			
		||||
mkdir -p /opt/wastebin
 | 
			
		||||
mv wastebin /opt/wastebin/
 | 
			
		||||
chmod +x /opt/wastebin/wastebin
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user