Update umlautadaptarr.sh

This commit is contained in:
elvito 2025-04-16 20:17:08 +02:00 committed by GitHub
parent d42258b57e
commit 49502595d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,8 +31,7 @@ function update_script() {
msg_info "Updating $APP..." msg_info "Updating $APP..."
systemctl stop umlautadaptarr systemctl stop umlautadaptarr
temp_file=$(mktemp) temp_file=$(mktemp)
trap 'rm -f "$temp_file"' EXIT RELEASE=$(curl -fsSL https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file
$STD unzip -u $temp_file '*/**' -d /opt/UmlautAdaptarr $STD unzip -u $temp_file '*/**' -d /opt/UmlautAdaptarr
systemctl start umlautadaptarr systemctl start umlautadaptarr