diff options
| author | Sam Scholten | 2025-10-24 08:56:18 +1000 |
|---|---|---|
| committer | Sam Scholten | 2025-10-24 08:56:18 +1000 |
| commit | 0f99db5d30bdaadf6cfd8f8e3405a6f35c2398aa (patch) | |
| tree | 9cfe44c44b950746a51730d4baf7138eee1c87a2 | |
| parent | 04f28e2e6496195e16afdfed26135180b8600993 (diff) | |
| download | drestic-0f99db5d30bdaadf6cfd8f8e3405a6f35c2398aa.tar.gz drestic-0f99db5d30bdaadf6cfd8f8e3405a6f35c2398aa.zip | |
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.
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 \ |
