[Koha-bugs] [Bug 11190] sitemap.pl -- Generate a Catalog sitemap

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 2 20:45:15 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11190

--- Comment #8 from Magnus Enger <magnus at enger.priv.no> ---
Thanks for fixing a lot of issues with this script! I have another couple of
suggestons:

In regards to issue 3, the problem was on my side: I was executing the script
through koha-shell, like so:

 $ sudo koha-shell -c "perl misc/cronjobs/sitemap.pl -h" kohadev

This meant that the script was actually beig run as the kohadev-koha user (or
something like that), which did not have write permission to the dir I was
executing the script in. This caused the XML to be written to STDOUT, instead
of to a file. Would it be hard to add an (optional) switch for specifying where
the output goes? 

If sitemap.pl is run without any arguments, it will create the sitemap files. I
seem to remember we have a convention that scripts run without arguments should
print a help message and exit, but it does not seem to be in the coding
guidelines... Maybe add a --run parameter to actually run the script?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list