[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
Thu Jun 26 10:31:03 CEST 2014


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

Magnus Enger <magnus at enger.priv.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #29270|0                           |1
        is obsolete|                            |
  Attachment #29273|0                           |1
        is obsolete|                            |

--- Comment #4 from Magnus Enger <magnus at enger.priv.no> ---
Created attachment 29274
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=29274&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.

-- 
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