tenseleyflow/shithub / ab67f98

Browse files

fix(aide): pass --config explicitly; AIDE 0.18 doesn't default it

Authored by espadonne
SHA
ab67f98ea3ddb0e4fccf8d26234af30c9583e518
Parents
01c0c76
Tree
e0f7675

1 changed file

StatusFile+-
M deploy/ansible/roles/base/files/shithub-aide-check.sh 4 1
deploy/ansible/roles/base/files/shithub-aide-check.shmodified
@@ -21,7 +21,10 @@ mkdir -p "$(dirname "$LOG")"
2121
 
2222
 ts() { date -u +%Y-%m-%dT%H:%M:%SZ; }
2323
 
24
-OUT="$(aide --check 2>&1)"
24
+# --config is mandatory on AIDE 0.18+ (Ubuntu 24); the binary won't
25
+# pick up /etc/aide/aide.conf implicitly. Match the path the package
26
+# ships and that aideinit / dailyaidecheck use.
27
+OUT="$(aide --config=/etc/aide/aide.conf --check 2>&1)"
2528
 RC=$?
2629
 
2730
 case "$RC" in