Lines 45-55
EOF
Link Here
|
45 |
for name in "$@" |
45 |
for name in "$@" |
46 |
do |
46 |
do |
47 |
if is_instance $name ; then |
47 |
if is_instance $name ; then |
48 |
passwd=$(xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/$name/koha-conf.xml); |
48 |
passwd=$(xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/$name/koha-conf.xml); |
49 |
echo "Password for $name: $passwd" |
49 |
if [ -t 1 ]; then |
50 |
echo "Press enter to clear the screen..." |
50 |
echo "Password for $name: $passwd" |
51 |
read anykey |
51 |
echo "Press enter to clear the screen..." |
52 |
clear |
52 |
read anykey |
|
|
53 |
clear |
54 |
else |
55 |
echo "$passwd" |
56 |
fi |
53 |
else |
57 |
else |
54 |
warn "Unknown instance $name." |
58 |
warn "Unknown instance $name." |
55 |
fi |
59 |
fi |
56 |
- |
|
|