[Bug 645082] Re: bacula misses requirement of gawk
Fred Baumgarten
645082 at bugs.launchpad.net
Thu Sep 23 21:55:42 BST 2010
Hi Serge !
I am pretty sure it matters. If gawk and mawk are installed the same
time, the user has to decide what awk is the default. If he uses mawk as
default via /etc/alternatives, /usr/bin/awk points to
/etc/alternatives/awk which points to /usr/bin/mawk. If bacula depends
on gawk (as quoted in the first line of
/etc/bacula/scripts/make_catalog_backup_awk), RunBeforeJob =
"/usr/bin/awk -f /etc/bacula/scripts/make_catalog_backup_awk -v
cat1=MyCatalog /etc/bacula/bacula-dir.conf" will fail, because the
statement in line number 1 is not read.
either way is possible:
RunBeforeJob = "/usr/bin/gawk -f
/etc/bacula/scripts/make_catalog_backup_awk -v cat1=MyCatalog
/etc/bacula/bacula-dir.conf"
which will use the correct awk, or
RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup_awk -v
cat1=MyCatalog /etc/bacula/bacula-dir.conf"
which will use the first line in the script to find the correct awk but
requires the executable bit set which is not the case right now.
Therefore the right fix would be adding the "g" in solution number 1.
Thanks for your work,
Fred
--
bacula misses requirement of gawk
https://bugs.launchpad.net/bugs/645082
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in ubuntu.
More information about the Ubuntu-server-bugs
mailing list