Applied the patch and added some blank lines back to the disklist. Still doesn't work.

amalthea:~# patch /etc/aide/aide.conf.d/31_aide_amanda-server -i aide.patch
patching file /etc/aide/aide.conf.d/31_aide_amanda-server
Hunk #1 succeeded at 66 with fuzz 2.
amalthea:~# cd /etc/amanda/Trent/
amalthea:/etc/amanda/Trent# nano disklist
amalthea:/etc/amanda/Trent# aideinit
Overwrite existing /var/lib/aide/aide.db.new [Yn]?
Running aide --init...
  ERROR: /etc/aide/aide.conf.d/31_aide_amanda-server (stdout):13:28: error in rule '/var/lib/amanda/Trent/index///2022[0-9]{4}_[0123]\.gz$': invalid double slash (line: '!/@@{AMANDA_INDEXDIR}///@@{YEAR4D}[0-9]{4}_[0123]\.gz$ f')
AIDE --init return code 17


On 5/28/2022 2:10 PM, Hannes von Haugwitz wrote:
Hello Barry,

On Sat, May 28, 2022 at 11:34:44AM -0500, Barry Trent wrote:
Yes! Removing all blank (and "#" comment) lines from disklist solved the
problem on 3 different machines.

So you've found the issue but, of course, blanks and comments are valid in
the disklist and are even present in the disklist installed as a sample with
amanda-server in DailySet1. I had to remove the DailySet1 which was still
present on one machine to get aideinit to complete without the error.
Can you please apply the following patch and report back if it solves your
issue?

diff --git a/debian/aide.conf.d/31_aide_amanda-server 
b/debian/aide.conf.d/31_aide_amanda-server
index 5750779..78424eb 100755
--- a/debian/aide.conf.d/31_aide_amanda-server
+++ b/debian/aide.conf.d/31_aide_amanda-server
@@ -66,7 +66,7 @@ for configfile in $(find /etc/amanda -name amanda.conf ! 
-path '/etc/amanda/temp
      printf "@@define AMANDA_INDEXDIR %s\\n" "${AMANDA_INDEXDIR}"
      if [ -f "disklist" ]; then
        while read -r host dev rest; do
-        if echo "${host}" | grep -q '^\\(#.*\\)\\?$'; then continue; fi
+        if echo "${host}" | grep -q '^(#.*)?$'; then continue; fi
          dev="$(echo "${dev}" | sed 's|[/:]|_|g;s|\\"||g')"
         if ! skip_multiline_dle; then
              printf "!/@@{AMANDA_INDEXDIR}/%s/%s/@@{YEAR4D}[0-9]{4}_[0123]\\.gz$ f\\n" 
"${host}" "${dev}"

Best regards

Hannes


--
Barry A. Trent
952-829-5864, x109
barry.tr...@atcorp.com

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to