Files
adamandClaude Opus 5.5 fc2c08d47b
release / deb (push) Successful in 17s
add doctor, scheduled backups and fetch; release 0.0.12
- doctor [<name>] [--fix]: checks the system (user, programs, folders,
  zips, units and leftover copies in /etc, sandbox access to moved
  folders, journal, polkit, daemon, orphaned boot links and schedules)
  and each instance (ownership, server zip, config paths, mods, ports,
  failed starts/backups), with a fix for each. --fix applies the safe
  ones and re-checks them.
- backup enable|disable|now|list: a systemd timer per instance
  (terraria-backup@.timer, Persistent=), saving the world first, into
  /var/lib/terraria/backups/<name>/ (group-readable), pruning only
  scheduled backups. rename carries the schedule, delete removes it.
  upgrade's backups move there too.
- fetch vanilla|tmodloader [<version>] [--list] [--upgrade <name>]:
  downloads from terraria.org / tModLoader's GitHub releases, checks
  GitHub's sha256 and the zip, names it with its version.
- terractld may write /etc/systemd/system, for backup enable and
  doctor --fix over --host.
- Units, tmpfiles, packaging, completion, docs and changelog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 22:26:56 +00:00

16 lines
947 B
Plaintext

# No age field: nothing here is ever cleaned up automatically.
d /var/lib/terraria 0750 terraria terraria -
d /var/lib/terraria/instances 0750 terraria terraria -
# setgid + group-writable: members of the 'terraria' group can upload zips
d /var/lib/terraria/dist 2775 root terraria -
# Backups ('terractl backup', and 'upgrade' before switching): readable by the
# group, like the instances themselves
d /var/lib/terraria/backups 2750 root terraria -
# The servers' journal (LogNamespace=terraria): readable by the terraria group,
# including files journald creates later (default ACL). 'A+' only acts on paths
# that exist and never creates them; 'terractl journal-access' creates the
# folders, and only where journald already keeps journals.
A+ /var/log/journal/%m.terraria - - - - group:terraria:r-x,default:group:terraria:r-x
A+ /run/log/journal/%m.terraria - - - - group:terraria:r-x,default:group:terraria:r-x