aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Scholten2025-10-24 09:00:00 +1000
committerSam Scholten2025-10-24 09:00:00 +1000
commit59af76dc28655316c5176c9262bf05f757dc9f56 (patch)
tree4d15926bc5c3de2bf340375b6c7ab5f730d40e00
parent0f99db5d30bdaadf6cfd8f8e3405a6f35c2398aa (diff)
downloaddrestic-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--Makefile2
1 files changed, 1 insertions, 1 deletions
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"; \