Lines 46-66
do
Link Here
|
46 |
esac |
46 |
esac |
47 |
shift |
47 |
shift |
48 |
done |
48 |
done |
49 |
|
49 |
|
50 |
for name in $(koha-list $listopts) |
50 |
for name in $(koha-list $listopts) |
51 |
do |
51 |
do |
52 |
# Optionally use alternative paths for a dev install |
52 |
# Replace the __instancename__ placeholder for the instance name (Bug 8566) |
53 |
adjust_paths_dev_install $name |
|
|
54 |
|
55 |
cmd=`echo "$@" | sed -e s/__instancename__/${name}/g` |
53 |
cmd=`echo "$@" | sed -e s/__instancename__/${name}/g` |
56 |
( |
|
|
57 |
exec 3>&1 |
58 |
sudo -u "$name-koha" \ |
59 |
env PERL5LIB=$PERL5LIB \ |
60 |
KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml" \ |
61 |
${cmd} 2>&1 >&3 | sed -e "s/^/$name: /" >&2 3>&- |
62 |
exec 3>&- |
63 |
) | sed -e "s/^/$name: /" |
64 |
|
54 |
|
|
|
55 |
if [ "${cmd}" != "" ]; then |
56 |
koha-shell ${name} -c "${cmd}" |
57 |
fi |
65 |
done |
58 |
done |
66 |
|
|
|
67 |
- |