mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
Update ersatztv.sh
Finalize Update Script
This commit is contained in:
parent
38be75aa53
commit
884109f6c2
1 changed files with 3 additions and 4 deletions
|
@ -66,15 +66,14 @@ systemctl stop ersatzTV
|
||||||
msg_ok "Stopped ErsatzTV"
|
msg_ok "Stopped ErsatzTV"
|
||||||
|
|
||||||
msg_info "Updating ErsatzTV"
|
msg_info "Updating ErsatzTV"
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/ErsatzTV/ErsatzTV/releases | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }' | head -n 1)
|
RELEASE=$(curl -s https://api.github.com/repos/ErsatzTV/ErsatzTV/releases | grep -oP '"tag_name": "\K[^"]+' | head -n 1)
|
||||||
cd /opt
|
cd /opt
|
||||||
if [ -d ErsatzTV_bak ]; then
|
if [ -d ErsatzTV_bak ]; then
|
||||||
rm -rf ErsatzTV_bak
|
rm -rf ErsatzTV_bak
|
||||||
fi
|
fi
|
||||||
mv ErsatzTV ErsatzTV_bak
|
mv ErsatzTV ErsatzTV_bak
|
||||||
wget -q https://github.com/ErsatzTV/ErsatzTV/releases/download/${RELEASE}/ErsatzTV-${RELEASE}-linux-x64.tar.gz
|
wget -qO- "https://github.com/ErsatzTV/ErsatzTV/releases/download/${RELEASE}/ErsatzTV-${RELEASE}-linux-x64.tar.gz" | tar -xz -C /opt
|
||||||
tar -xf ErsatzTV-${RELEASE}-linux-x64.tar.gz
|
mv "/opt/ErsatzTV-${RELEASE}-linux-x64" /opt/ErsatzTV
|
||||||
mv ErsatzTV-${RELEASE}-linux-x64 ErsatzTV
|
|
||||||
msg_ok "Updated ErsatzTV"
|
msg_ok "Updated ErsatzTV"
|
||||||
|
|
||||||
msg_info "Starting ErsatzTV"
|
msg_info "Starting ErsatzTV"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue