From 0f99db5d30bdaadf6cfd8f8e3405a6f35c2398aa Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Fri, 24 Oct 2025 08:56:18 +1000 Subject: Fix make config to detect system scope configuration Add sudo before checking for /root/.restic_env in the config target. Without sudo, the check runs as the regular user and can't see the system scope environment file, causing make config to incorrectly report 'No DRestic configuration found' when system scope is set up. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 636e126..8c3fe81 100644 --- a/Makefile +++ b/Makefile @@ -415,7 +415,7 @@ validate-config: else \ echo "✗ Rclone connection failed"; \ fi; \ - elif [ -f /root/.restic_env ]; then \ + elif sudo [ -f /root/.restic_env ]; then \ echo "✓ System scope configuration found"; \ echo "Checking system configuration..."; \ if sudo [ -f /root/.restic_password ] && sudo [ -s /root/.restic_password ]; then \ -- cgit v1.2.3