Package: aide Version: 0.11a-3 Severity: minor If there are two amanda.conf files the aide complains as dirname only takes one command. The fix (see patch) is pretty simple
# aideinit dirname: extra operand `/etc/amanda/normal/amanda.conf' Try `dirname --help' for more information. Running aide --init... dirname: extra operand `/etc/amanda/normal/amanda.conf' Try `dirname --help' for more information. # sh -x /etc/aide/aide.conf.d/31_aide_amanda-server + '[' -d /etc/amanda ']' +++ find /etc/amanda -name amanda.conf ++ dirname /etc/amanda/DailySet1/amanda.conf /etc/amanda/normal/amanda.conf dirname: extra operand `/etc/amanda/normal/amanda.conf' Try `dirname --help' for more information. + cat @@define AMANDATMP /tmp/amanda !@@{AMANDATMP}/(amandad|amcheck|amtrm(idx|log)|killpgrp|selfcheck|sendbackup|sendsize)\.200[0-9]{11}\.debug$ @@{AMANDATMP}$ RamdiskData-Size /var/lib/dumpdates$ VarFile -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16-1-k7 Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1) Versions of packages aide depends on: ii cdebconf [debcon 0.100+b1 Debian Configuration Management Sy ii debconf [debconf 1.5.0 Debian configuration management sy ii liblockfile1 1.06.1 NFS-safe locking library, includes ii mailx 1:8.1.2-0.20050715cvs-1 A simple mail user agent ii ucf 2.0010 Update Configuration File: preserv Versions of packages aide recommends: ii cron 3.0pl1-94 management of regular background p -- debconf information: * aide/aideinit: false aideinit/overwritenew: true * aide/mustaideinit: aideinit/copynew: false aide/newlibdir: false * aide/setmailaddress: aideinit/warnnew:
--- 31_aide_amanda-server.orig 2006-05-22 09:31:00.000000000 +1000 +++ 31_aide_amanda-server 2006-05-22 09:31:23.000000000 +1000 @@ -3,7 +3,8 @@ if ! [ -d /etc/amanda ]; then exit 0 fi -for config in $(dirname $(find /etc/amanda -name amanda.conf)); do +for configfile in $(find /etc/amanda -name amanda.conf); do + config="$(dirname $configfile)" cd $config CONF="${config##*/}" AMANDA_TAPEDEV="$(amgetconf $CONF tapedev)"