Comment 4 for bug 645082

Revision history for this message
Fred Baumgarten (dc6iq) wrote :

Is the fix really that simple ?

Actually make_catalog_backup_awk holds the first line:

#!/usr/bin/gawk -f

which is obviously correct. Durung the bacula call mawk got involved (it was a server installation). I guess the callee does a command like "awk -f /etc/bacula/scripts/make_catalog_backup_awk" which is even wrong if mawk has precendence over gawk by using /etc/alternatives/awk. I guess you need to inspect a bit deeper.

ah yes - i just took a look at bacula-dir.conf in /etc/bacula, there it is:

RunBeforeJob = "/usr/bin/awk -f /etc/bacula/scripts/make_catalog_backup_awk -v cat1=MyCatalog /etc/bacula/bacula-dir.conf"

there the /usr/bin/awk needs to be changed to /usr/bin/gawk as well.

greetings,
Fred