use fetch_and_deploy_gh_release

This commit is contained in:
Tobias Salzmann
2026-04-28 13:30:06 +02:00
parent 40ea63072e
commit 6b8120e2b3
2 changed files with 3 additions and 4 deletions

View File

@@ -28,12 +28,12 @@ function update_script() {
exit
fi
if check_for_gh_tag "cinny" "cinnyapp/cinny"; then
if check_for_gh_release "cinny" "cinnyapp/cinny"; then
msg_info "Backing up Data"
cp /opt/cinny/config.json /tmp/cinny_config.json
msg_ok "Backed up Data"
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "cinny" "cinnyapp/cinny"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "cinny" "cinnyapp/cinny"
msg_info "Restoring Configuration"
cp /tmp/cinny_config.json /opt/cinny/config.json