Yes. After applying this patch aideinit succeeds on all 3 machines I have it running on with amanda-server

On 5/31/22 5:13 AM, Hannes von Haugwitz wrote:
On Mon, May 30, 2022 at 09:46:30AM -0500, Barry Trent wrote:
Applied the patch and added some blank lines back to the disklist. Still
doesn't work.

Argh, I overlooked the missing -E flag for grep. Please try again.

diff --git a/debian/aide.conf.d/31_aide_amanda-server 
b/debian/aide.conf.d/31_aide_amanda-server
index 5750779..7604e0f 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 -Eq '^(#.*)?$'; 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