Updating needs shellbook-update as root in the CT. Add a Settings button that starts it.
The service stays unprivileged (NoNewPrivileges). The installer adds root-owned systemd units: a path unit watching a request file in the data directory starts a oneshot service that runs /usr/local/sbin/shellbook-update; output goes to a root-owned log file.
Settings shows the installed commit, checks the repository for new commits (with their subjects), starts the update after confirmation, follows the log, survives the service restart and offers a reload.
Without the units (dev, older installs) the UI explains how to update.
Updating needs `shellbook-update` as root in the CT. Add a Settings button that starts it.
- The service stays unprivileged (NoNewPrivileges). The installer adds root-owned systemd units: a path unit watching a request file in the data directory starts a oneshot service that runs /usr/local/sbin/shellbook-update; output goes to a root-owned log file.
- Settings shows the installed commit, checks the repository for new commits (with their subjects), starts the update after confirmation, follows the log, survives the service restart and offers a reload.
- Without the units (dev, older installs) the UI explains how to update.
Settings → Updates: installed commit, "Check for updates" (lists new commits), "Update now" with confirmation, live output, follows the service restart, then offers Reload.
The service stays unprivileged: it only writes /var/lib/shellbook/update-request. Root-owned shellbook-update.path starts oneshot shellbook-update.service → /usr/local/sbin/shellbook-update; output in /var/log/shellbook-update.log.
Without the units, Settings explains the manual shellbook-update run instead.
Verified: typecheck, tests (core 70, web 80, server 200 + 1 skipped), build, 17 install-script checks.
Not verified: the systemd path trigger, systemctl show --timestamp=unix parsing and the restart on a real Debian 13 host, and the panel in a real browser. Existing installs need one pct exec 501 -- /usr/local/sbin/shellbook-update to get the units.
Done in 2fc5f99..cae72c7.
- Settings → Updates: installed commit, "Check for updates" (lists new commits), "Update now" with confirmation, live output, follows the service restart, then offers Reload.
- The service stays unprivileged: it only writes `/var/lib/shellbook/update-request`. Root-owned `shellbook-update.path` starts oneshot `shellbook-update.service` → `/usr/local/sbin/shellbook-update`; output in `/var/log/shellbook-update.log`.
- Without the units, Settings explains the manual `shellbook-update` run instead.
Verified: typecheck, tests (core 70, web 80, server 200 + 1 skipped), build, 17 install-script checks.
Not verified: the systemd path trigger, `systemctl show --timestamp=unix` parsing and the restart on a real Debian 13 host, and the panel in a real browser. Existing installs need one `pct exec 501 -- /usr/local/sbin/shellbook-update` to get the units.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Updating needs
shellbook-updateas root in the CT. Add a Settings button that starts it.Done in 2fc5f99..cae72c7.
/var/lib/shellbook/update-request. Root-ownedshellbook-update.pathstarts oneshotshellbook-update.service→/usr/local/sbin/shellbook-update; output in/var/log/shellbook-update.log.shellbook-updaterun instead.Verified: typecheck, tests (core 70, web 80, server 200 + 1 skipped), build, 17 install-script checks.
Not verified: the systemd path trigger,
systemctl show --timestamp=unixparsing and the restart on a real Debian 13 host, and the panel in a real browser. Existing installs need onepct exec 501 -- /usr/local/sbin/shellbook-updateto get the units.