[Koha-patches] [PATCH] wr74454: prepend output with system name
Robin Sheat
robin at catalyst.net.nz
Thu Dec 16 07:25:44 CET 2010
This is identical to the other patch that follows it, only our internal
tracking number is somewhat useless to the world at large, and so I
re-sent it with the koha bug number.
Robin Sheat schreef op do 16-12-2010 om 19:21 [+1300]:
> From: Srdjan Jankovic <srdjan at catalyst.net.nz>
>
> ---
> debian/scripts/koha-foreach | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/debian/scripts/koha-foreach b/debian/scripts/koha-foreach
> index 80152bc..b1bcc15 100755
> --- a/debian/scripts/koha-foreach
> +++ b/debian/scripts/koha-foreach
> @@ -29,9 +29,14 @@ fi
>
> for name in $(koha-list $listopts)
> do
> + (
> + exec 3>&1
> sudo -u "$name-koha" \
> env PERL5LIB=/usr/share/koha/lib \
> KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml" \
> - "$@"
> + "$@" 2>&1 >&3 | sed -e "s/^/$name: /" >&2 3>&-
> + exec 3>&-
> + ) | sed -e "s/^/$name: /"
> +
> done
>
--
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: </pipermail/koha-patches/attachments/20101216/85c7f978/attachment.pgp>
More information about the Koha-patches
mailing list