diff options
| author | Sam Scholten | 2025-10-24 09:00:00 +1000 |
|---|---|---|
| committer | Sam Scholten | 2025-10-24 09:00:00 +1000 |
| commit | 59af76dc28655316c5176c9262bf05f757dc9f56 (patch) | |
| tree | 4d15926bc5c3de2bf340375b6c7ab5f730d40e00 | |
| parent | 0f99db5d30bdaadf6cfd8f8e3405a6f35c2398aa (diff) | |
| download | drestic-59af76dc28655316c5176c9262bf05f757dc9f56.tar.gz drestic-59af76dc28655316c5176c9262bf05f757dc9f56.zip | |
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.
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; \ |
