Lines 32-43
done
Link Here
|
32 |
|
32 |
|
33 |
for name in $(koha-list $listopts) |
33 |
for name in $(koha-list $listopts) |
34 |
do |
34 |
do |
|
|
35 |
cmd=`echo "$@" | sed -e s/__instancename__/${name}/g` |
35 |
( |
36 |
( |
36 |
exec 3>&1 |
37 |
exec 3>&1 |
37 |
sudo -u "$name-koha" \ |
38 |
sudo -u "$name-koha" \ |
38 |
env PERL5LIB=/usr/share/koha/lib \ |
39 |
env PERL5LIB=/usr/share/koha/lib \ |
39 |
KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml" \ |
40 |
KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml" \ |
40 |
"$@" 2>&1 >&3 | sed -e "s/^/$name: /" >&2 3>&- |
41 |
${cmd} 2>&1 >&3 | sed -e "s/^/$name: /" >&2 3>&- |
41 |
exec 3>&- |
42 |
exec 3>&- |
42 |
) | sed -e "s/^/$name: /" |
43 |
) | sed -e "s/^/$name: /" |
43 |
|
44 |
|
44 |
- |
|
|