feat(deploy): install the update trigger units (#15)
shellbook-update.path starts the oneshot shellbook-update.service, which runs the fixed root-owned updater and logs to /var/log/shellbook-update.log.
This commit is contained in:
@@ -49,6 +49,14 @@ scripts from `/opt/shellbook`, which the service user (and the terminal panel)
|
||||
can modify. A failed build leaves the running service in place; check
|
||||
`journalctl -u shellbook`.
|
||||
|
||||
Settings → Updates shows the installed commit, checks the repository for new
|
||||
commits, and starts the same update with **Update now**, following its output
|
||||
through the restart. The button needs the trigger units the installer adds
|
||||
(`shellbook-update.path` watches `/var/lib/shellbook/update-request` and starts
|
||||
`shellbook-update.service` as root; output in `/var/log/shellbook-update.log`). Older
|
||||
installations get them with one `shellbook-update` run from the CLI. If the button
|
||||
does nothing, check `systemctl status shellbook-update.path shellbook-update`.
|
||||
|
||||
Configuration is `/etc/shellbook/env`; data is `/var/lib/shellbook` (back it up
|
||||
along with workspace and service-user home). `SHELLBOOK_SESSION_SECONDS` defaults
|
||||
to 2592000 (30 days). Cookies survive restart. Logout clears the browser cookie;
|
||||
|
||||
Reference in New Issue
Block a user