From 59af76dc28655316c5176c9262bf05f757dc9f56 Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Fri, 24 Oct 2025 09:00:00 +1000 Subject: Fix make config to detect system scope configuration (second fix) Added sudo before checking for /root/.restic_env in the config target's elif condition. The previous commit only fixed the validate-config target, not the config target. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8c3fe81..a03ee1c 100644 --- a/Makefile +++ b/Makefile @@ -463,7 +463,7 @@ config: echo " Paths file: ~/.config/restic/paths"; \ echo " Excludes file: ~/.config/restic/excludes"; \ echo " Timer status: $$(systemctl --user is-active restic-backup.timer 2>/dev/null || echo 'inactive')"; \ - elif [ -f /root/.restic_env ]; then \ + elif sudo [ -f /root/.restic_env ]; then \ echo "System scope configuration:"; \ echo " Config directory: /etc/restic/"; \ echo " Password file: /root/.restic_password"; \ -- cgit v1.2.3