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

--- Comment #8 from Magnus Enger <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to