1
0
Fork 0
mirror of https://github.com/maziggy/bambuddy.git synced 2026-05-09 08:25:54 +02:00

[PR #434] [MERGED] feat: Add native updater script with backup and safety checks #1048

Closed
opened 2026-05-07 00:15:41 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/maziggy/bambuddy/pull/434
Author: @uefigs139
Created: 2/18/2026
Status: Merged
Merged: 2/19/2026
Merged by: @maziggy

Base: 0.2.1bHead: codex/add-systemd-updater-script


📝 Commits (10+)

  • 257a656 Housekeeping
  • 22ac7e9 Closes #426
  • 101288d Updated CI
  • d12aaa2 feat: add native updater script with backup and safety checks
  • 78f1761 fix: use robust systemd service detection in updater
  • ee4def2 Merge branch '0.2.1b' into codex/add-systemd-updater-script
  • 3b02d3e Updated prompt flow of update
  • e8b5f21 Merge branch 'codex/add-systemd-updater-script' of https://github.com/uefigs139/bambuddy into codex/add-systemd-updater-script
  • 891b6cc Merge branch '0.2.1b' into codex/add-systemd-updater-script
  • 1ba681d Merge branch '0.2.1b' into codex/add-systemd-updater-script

📊 Changes

2 files changed (+239 additions, -6 deletions)

View changed files

📝 install/README.md (+27 -6)
install/update.sh (+212 -0)

📄 Description

Adds a native Linux/systemd updater script (install/update.sh) to make non-Docker updates safer and one-command.

Includes:

  • upfront root/sudo check
  • warning + confirmation before git reset --hard when local changes exist
  • pre-update call to built-in backup endpoint (/api/v1/settings/backup) with modes:
    • BACKUP_MODE=auto (default)
    • BACKUP_MODE=require
    • BACKUP_MODE=skip
  • optional API key support for auth-enabled instances (BAMBUDDY_API_KEY)
  • stop/update/start flow with rollback attempt if update fails
  • documentation updates in install/README.md with usage and env var examples

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/maziggy/bambuddy/pull/434 **Author:** [@uefigs139](https://github.com/uefigs139) **Created:** 2/18/2026 **Status:** ✅ Merged **Merged:** 2/19/2026 **Merged by:** [@maziggy](https://github.com/maziggy) **Base:** `0.2.1b` ← **Head:** `codex/add-systemd-updater-script` --- ### 📝 Commits (10+) - [`257a656`](https://github.com/maziggy/bambuddy/commit/257a65633aafb74c930c21c3e8bc61f76a790f23) Housekeeping - [`22ac7e9`](https://github.com/maziggy/bambuddy/commit/22ac7e97bb17e30edfa72afcbe76689538767ab0) Closes #426 - [`101288d`](https://github.com/maziggy/bambuddy/commit/101288d1b22d866e6edbb9b4af675ff2c35e4b3f) Updated CI - [`d12aaa2`](https://github.com/maziggy/bambuddy/commit/d12aaa222eb73c8ce5f66cf4f2ea8ec70d3baf42) feat: add native updater script with backup and safety checks - [`78f1761`](https://github.com/maziggy/bambuddy/commit/78f17614e735220ad733cdcc03f253a461ca6a10) fix: use robust systemd service detection in updater - [`ee4def2`](https://github.com/maziggy/bambuddy/commit/ee4def24b834a4de0d41e6bc10dccbb95ebfa478) Merge branch '0.2.1b' into codex/add-systemd-updater-script - [`3b02d3e`](https://github.com/maziggy/bambuddy/commit/3b02d3eeddb689c049bab20cfe51f81581b6b76b) Updated prompt flow of update - [`e8b5f21`](https://github.com/maziggy/bambuddy/commit/e8b5f216cb95634888cbb22b17395e61bc7abeb1) Merge branch 'codex/add-systemd-updater-script' of https://github.com/uefigs139/bambuddy into codex/add-systemd-updater-script - [`891b6cc`](https://github.com/maziggy/bambuddy/commit/891b6cc9cea8573ec6d528abd406250e7e994dec) Merge branch '0.2.1b' into codex/add-systemd-updater-script - [`1ba681d`](https://github.com/maziggy/bambuddy/commit/1ba681d7b734ec963240cb0863c68d104fea1da1) Merge branch '0.2.1b' into codex/add-systemd-updater-script ### 📊 Changes **2 files changed** (+239 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `install/README.md` (+27 -6) ➕ `install/update.sh` (+212 -0) </details> ### 📄 Description Adds a native Linux/systemd updater script (`install/update.sh`) to make non-Docker updates safer and one-command. Includes: - upfront root/sudo check - warning + confirmation before `git reset --hard` when local changes exist - pre-update call to built-in backup endpoint (`/api/v1/settings/backup`) with modes: - `BACKUP_MODE=auto` (default) - `BACKUP_MODE=require` - `BACKUP_MODE=skip` - optional API key support for auth-enabled instances (`BAMBUDDY_API_KEY`) - stop/update/start flow with rollback attempt if update fails - documentation updates in `install/README.md` with usage and env var examples --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 00:15:41 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy-maziggy-1#1048
No description provided.