Skip to content

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 06 Nov 15:24
· 16 commits to main since this release
Immutable release. Only release title and notes can be modified.
22e0249

What's Changed

hotserve is now motel. Same program, new name everywhere: package, binaries, units, paths, accounts and environment variables. See below for the manual upgrade path from hotserve.

  • docs(backups): docs/ is for the operator — the guide keeps what an operator needs; the release checklist and the design record move beside the package by @earthlingdavey in #399
  • refactor: rename hotserve to motel, with no upgrade path by @earthlingdavey in #400
  • deps: klauspost/compress 1.20.2 (GO-2026-6865) by @earthlingdavey in #402

Full Changelog: v0.5.0...v0.6.0

Moving a box

  # 1. Back up
  d=/root/hotserve-backup-$(date -u +%Y%m%dT%H%M%SZ); mkdir -m 700 $d
  tar -C / -czf $d/hotserve.tgz etc/hotserve etc/hotserve-backup
  var/lib/hotserve/caddy
  cp /etc/hotserve/Caddyfile $d/
  
  # 2. Remove hotserve. Kept: the age identity, secrets, restic credentials,
  #    Caddy certificates, /var/lib/liveswap and both accounts.
  apt purge hotserve
  
  # 3. Rename the accounts in place, so uids and file ownership survive
  usermod -l motel -d /var/lib/motel -c "motel server" hotserve
  groupmod -n motel hotserve 
  usermod -l motel-backup -c made-by-motel hotserve-backup
  groupmod -n motel-backup hotserve-backup
  
  # 4. Move what was kept to its motel name
  mv /etc/hotserve /etc/motel
  mv /etc/hotserve-backup /etc/motel-backup
  mv /var/lib/hotserve /var/lib/motel
  
  # 5. Convert the Caddyfile and put it in place before installing,
  #    so the package keeps it instead of writing its starter.
  #    Check afterwards that each `claim repository` still names your repo.
  sed 's/hotserve/motel/g' $d/Caddyfile > /etc/motel/Caddyfile
  
  # 6. Install and start (Your first deploy, step 2)
  mkdir -p /var/local/motel && cd /var/local/motel
  v=0.6.0; arch=$(dpkg --print-architecture)
  base=https://github.com/smallhoursorg/motel/releases/download/v$v
  curl -fsSLO "$base/motel_${v}_${arch}.deb" && curl -fsSLO "$base/checksums.txt" &&
    sha256sum -c --ignore-missing checksums.txt && apt install
  ./motel_${v}_${arch}.deb 
  systemctl enable --now motel
  
  # 7. Check
  systemctl is-active motel motel-box-apply.path motel-backup.timer
  journalctl -u motel -o cat | grep relaunched      # each app comes back on its own
  motel-backup run && motel-backup status           # the moved credentials work