Upgrading¶
To move to a new release, run the install command again:
The script checks the new release the same way as a first install. Then
lodger install replaces the binary in /usr/local/bin and restarts the service. It
keeps /etc/lodger/config.toml, the database in /var/lib/lodger, and the lodger
user. If the configuration names a TLS certificate, the upgrade keeps it.
Before you upgrade¶
- Read the release notes on the release page. Until v1.0, a release can change the configuration, the API, or the stored data.
-
Copy the database, so that you can go back:
Lodger has no downgrade. To go back, install the older release with
VERSION=vX.Y.Z, and restore the copy of /var/lib/lodger.
After you upgrade¶
Run sudo lodger doctor, and log in once. The journal shows the start:
Changes that need your action¶
| Release | Change | What to do |
|---|---|---|
| v0.2 | Lodger refuses to start on an address that is not loopback without TLS. Until you fix it, the upgrade stops with "cannot install, and nothing changed". | Before the upgrade, do one of these: set tls_cert and tls_key (installation), list your reverse proxy in trusted_proxies (reverse proxy), or set allow_plain_http = true for a TLS proxy that Lodger does not trust for client addresses. |