diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -397,7 +397,7 @@ validate-config: echo "⚠ Excludes file missing (optional): ~/.config/restic/excludes"; \ fi; \ echo "Testing rclone connection..."; \ - if timeout 30 rclone ls backup_remote: >/dev/null 2>&1; then \ + if bash -c ". ~/.config/restic/env && timeout 60 rclone ls backup_remote:" >/dev/null 2>&1; then \ echo "✓ Rclone connection successful"; \ else \ echo "✗ Rclone connection failed"; \ @@ -421,7 +421,7 @@ validate-config: echo "⚠ Excludes file missing (optional): /etc/restic/excludes"; \ fi; \ echo "Testing rclone connection..."; \ - if timeout 30 rclone ls backup_remote: >/dev/null 2>&1; then \ + if sudo bash -c ". /root/.restic_env && timeout 60 rclone ls backup_remote:" >/dev/null 2>&1; then \ echo "✓ Rclone connection successful"; \ else \ echo "✗ Rclone connection failed"; \ |
