fix pattern and backup path

This commit is contained in:
Tobias Salzmann
2026-04-28 14:03:31 +02:00
parent 2a1c8912de
commit 339b2b9c4d
2 changed files with 7 additions and 7 deletions

View File

@@ -29,15 +29,15 @@ function update_script() {
fi fi
if check_for_gh_release "cinny" "cinnyapp/cinny"; then if check_for_gh_release "cinny" "cinnyapp/cinny"; then
msg_info "Backing up Data" msg_info "Backing up Configuration"
cp /opt/cinny/config.json /tmp/cinny_config.json cp /opt/cinny/config.json /opt/cinny_config.json.bak
msg_ok "Backed up Data" msg_ok "Backed up Configuration"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "cinny" "cinnyapp/cinny" "prebuild" "latest" "/opt/cinny" "cinny\-.*\.tar\.gz" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "cinny" "cinnyapp/cinny" "prebuild" "latest" "/opt/cinny" "cinny-.*tar.gz$"
msg_info "Restoring Configuration" msg_info "Restoring Configuration"
cp /tmp/cinny_config.json /opt/cinny/config.json cp /opt/cinny_config.json.bak /opt/cinny/config.json
rm -f /tmp/cinny_config.json rm -f /opt/cinny_config.json.bak
msg_ok "Restored Configuration" msg_ok "Restored Configuration"
msg_info "Restarting nginx" msg_info "Restarting nginx"

View File

@@ -20,7 +20,7 @@ msg_ok "Installed Dependencies"
msg_info "Installing Cinny" msg_info "Installing Cinny"
fetch_and_deploy_gh_release "cinny" "cinnyapp/cinny" "prebuild" "latest" "/opt/cinny" "cinny\-.*\.tar\.gz" fetch_and_deploy_gh_release "cinny" "cinnyapp/cinny" "prebuild" "latest" "/opt/cinny" "cinny-.*tar.gz$"
cat <<'EOF' >/etc/nginx/http.d/default.conf cat <<'EOF' >/etc/nginx/http.d/default.conf
server { server {