mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 05:35:30 +02:00
[GH-ISSUE #418] Add updater script for non-Docker systemd installs #259
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy#259
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @uefigs139 on GitHub (Feb 17, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/418
Originally assigned to: @maziggy on GitHub.
Problem or Use Case
I run Bambuddy on Debian 12 in an LXC on Proxmox (systemd install, non-Docker).
Updates currently require several manual steps (stop service, git update, pip update, frontend rebuild, restart service). It works, but it is easy to miss a step and it is slower than necessary.
A one-command updater for non-Docker installs would make maintenance much easier and reduce update errors for LXC/systemd users.
Proposed Solution
Add an official updater script for non-Docker installs (for example
scripts/update.sh) with this flow:bambuddy.servicegit fetch --prune origin && git reset --hard origin/<branch>venv/bin/pip install -r requirements.txtcd frontend && npm ci && npm run build(if frontend exists)Optional: support env vars for path/service/branch overrides so users can adapt different install layouts.
Alternatives Considered
Manual updates and local custom scripts.
I currently use a local helper script (
bbup) that performs the update steps. It works well, but this functionality would be better maintained upstream so users have a standard, documented update path.Feature Category
Print Archiving
Priority
Nice to have
Mockups or Examples
Summary
Add
scripts/update.shto provide a one-command updater for non-Docker installs (systemd/LXC/bare-metal).Why
Users running Bambuddy outside Docker currently perform several manual steps to update:
This script standardizes that process and reduces update mistakes.
What this adds
scripts/update.shwith:INSTALL_DIR(default/opt/bambuddy)SERVICE_NAME(defaultbambuddy)BRANCH(defaultmain)VENV_PIP(default$INSTALL_DIR/venv/bin/pip)FRONTEND_DIR(default$INSTALL_DIR/frontend)origin/$BRANCHrequirements.txtnpm ci && npm run buildwhen frontend existsDocs
Adds README section showing:
bambuddy-update)Tested
Tested on:
bambuddy.service/opt/bambuddyResult:
38641e9toac2aaaaContribution
Checklist
@maziggy commented on GitHub (Feb 18, 2026):
Thanks for the well-structured request! This makes sense — the manual update dance is error-prone and a standardized script would help all non-Docker users.
A few thoughts before implementation:
Would you be willing to share your existing bbup script as a starting point? Since you've already battle-tested it on Debian 12 / Proxmox LXC, it would save time and ensure the script reflects real-world usage rather than assumptions.
@uefigs139 commented on GitHub (Feb 18, 2026):
Makes sense. Since you have a backup feature in the settings, I agree the updater script should call that (if available) instead of duplicating backup logic.
For now, here is my original field-tested script exactly as used on Debian 12 / Proxmox LXC. I’m sharing it as a baseline, and I suggest adding your 3 improvements on top:
git reset --hardOriginal script:
@maziggy commented on GitHub (Feb 19, 2026):
https://github.com/maziggy/bambuddy/pull/434