From dfd7d9fa5cb11fd8af2da9394a5a5abb3230a4eb Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Tue, 28 Oct 2025 10:32:59 +1000 Subject: fix: remove hardcoded HOME=/root from systemd templates - Remove hardcoded HOME=/root from systemd service templates - Only set HOME explicitly for system scope in setup.sh and update.sh - This fixes rclone config lookup issue for user installations - Update sed patterns to correctly replace environment variables Resolves issue where user backups failed with rclone permission errors looking for config in /root/.rclone.conf instead of ~/.config/rclone/rclone.conf --- systemd/restic-check.service | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'systemd/restic-check.service') diff --git a/systemd/restic-check.service b/systemd/restic-check.service index 0892554..78f92f8 100644 --- a/systemd/restic-check.service +++ b/systemd/restic-check.service @@ -7,8 +7,9 @@ After=network.target network-online.target Type=oneshot # ExecStart path will be replaced by setup.sh during installation ExecStart=/path/to/be/replaced/restic_check.sh -# Environment variable will be set by setup.sh based on scope -Environment="HOME=/root" +# Environment variable for restic configuration +Environment="RESTIC_ENV_FILE=/path/to/be/replaced" +# HOME will be set by setup.sh for system scope only # Memory limits to prevent OOM on VPS (allow swap for safety) MemoryMax=512M MemorySwapMax=1G -- cgit v1.2.3