[Koha-bugs] [Bug 8566] Enable koha-foreach to insert the instancename into commands
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jun 27 00:28:14 CEST 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8566
Robin Sheat <robin at catalyst.net.nz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #29274|0 |1
is obsolete| |
--- Comment #5 from Robin Sheat <robin at catalyst.net.nz> ---
Created attachment 29309
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=29309&action=edit
Bug 8566: [SIGNED-OFF] Enable koha-foreach to insert the instancename into
commands
koha-foreach has been modified to replace __instancename__ with $name
on each iteration using sed.
The docbook file for koha-foreach has also been updated to reflect the
new functionality.
To test:
koha-foreach ls -ld /etc/koha/sites/__instancename__
should list directories instead of giving an error message.
Signed-off-by: Magnus Enger <digitalutvikling at gmail.com>
The suggested example with ls works as expected, as does my
more complex example with fines.pl:
koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl \
--out /var/log/koha/__instancename__/
The man page looks good too.
Signed-off-by: Robin Sheat <robin at catalyst.net.nz>
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list