projects
/
koha_fer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd8f379
)
Bug 5510: prepend output with system name
author
Srdjan Jankovic
<srdjan@catalyst.net.nz>
Thu, 16 Dec 2010 06:23:31 +0000
(19:23 +1300)
committer
Chris Cormack
<chrisc@catalyst.net.nz>
Sat, 18 Dec 2010 18:10:06 +0000
(07:10 +1300)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
debian/scripts/koha-foreach
patch
|
blob
|
history
diff --git
a/debian/scripts/koha-foreach
b/debian/scripts/koha-foreach
index
9cf150d
..
6bda414
100755
(executable)
--- a/
debian/scripts/koha-foreach
+++ b/
debian/scripts/koha-foreach
@@
-32,9
+32,14
@@
done
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