Update umlautadaptarr.sh
This commit is contained in:
parent
482fec9e95
commit
bbdc62bbd4
@ -29,11 +29,13 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
msg_info "Updating $APP..."
|
msg_info "Updating $APP..."
|
||||||
cd /opt/UmlautAdaptarr || exit
|
$STD systemctl stop umlautadaptarr
|
||||||
$STD git pull origin master
|
temp_file=$(mktemp)
|
||||||
$STD dotnet restore
|
trap 'rm -f "$temp_file"' EXIT
|
||||||
$STD dotnet build --configuration Release
|
RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
|
||||||
$STD systemctl restart umlautadaptarr
|
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 systemctl start umlautadaptarr
|
||||||
msg_ok "$APP has been updated."
|
msg_ok "$APP has been updated."
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user