1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-04-27 17:10:16 +00:00

Fix tar command (#3925)

This commit is contained in:
Slaviša Arežina 2025-04-17 15:09:18 +02:00 committed by GitHub
parent 3c909cabb6
commit 5dcb75a121
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ function update_script() {
msg_info "Updating $APP to ${RELEASE}" msg_info "Updating $APP to ${RELEASE}"
systemctl stop peanut systemctl stop peanut
curl -fsSL "https://api.github.com/repos/Brandawg93/PeaNUT/tarball/${RELEASE}" -o "peanut.tar.gz" curl -fsSL "https://api.github.com/repos/Brandawg93/PeaNUT/tarball/${RELEASE}" -o "peanut.tar.gz"
tar -xzf peanut.tar.gz -C /opt/peanut --strip-components tar -xzf peanut.tar.gz -C /opt/peanut --strip-components=1
rm peanut.tar.gz rm peanut.tar.gz
cd /opt/peanut cd /opt/peanut
$STD pnpm i $STD pnpm i

View File

@ -34,7 +34,7 @@ msg_info "Installing Peanut"
RELEASE=$(curl -fsSL https://api.github.com/repos/Brandawg93/PeaNUT/releases/latest | grep '"tag_name":' | cut -d'"' -f4) RELEASE=$(curl -fsSL https://api.github.com/repos/Brandawg93/PeaNUT/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
curl -fsSL "https://api.github.com/repos/Brandawg93/PeaNUT/tarball/${RELEASE}" -o "peanut.tar.gz" curl -fsSL "https://api.github.com/repos/Brandawg93/PeaNUT/tarball/${RELEASE}" -o "peanut.tar.gz"
mkdir -p /opt/peanut mkdir -p /opt/peanut
tar -xzf peanut.tar.gz -C /opt/peanut --strip-components 1 tar -xzf peanut.tar.gz -C /opt/peanut --strip-components=1
rm peanut.tar.gz rm peanut.tar.gz
cd /opt/peanut cd /opt/peanut
$STD npm install -g pnpm $STD npm install -g pnpm