fix: installer issues found during testing

- Remove invalid --config flag from exporter service template
- Change ReadOnlyPaths to ReadWritePaths for catalog access
- Add copyBinary() to install binary to /usr/local/bin (ProtectHome compat)
- Fix exporter status detection using direct systemctl check
- Add os/exec import for status check
This commit is contained in:
2026-01-07 11:50:51 +01:00
parent f4a0e2d82c
commit 78e10f5057
4 changed files with 55 additions and 7 deletions

View File

@@ -21,14 +21,14 @@ RestrictRealtime=yes
LockPersonality=yes
RemoveIPC=yes
# Read-only access to catalog and backups
ReadOnlyPaths=/var/lib/dbbackup
# Read-write access to catalog for metrics collection
ReadWritePaths=/var/lib/dbbackup
# Network for HTTP server
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
# Execution
ExecStart={{.BinaryPath}} metrics serve --port {{.MetricsPort}} --config {{.ConfigPath}}
ExecStart={{.BinaryPath}} metrics serve --port {{.MetricsPort}}
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=5