|
Lines 45-52
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 |
user=$(xmlstarlet sel -t -v 'yazgfs/config/user' /etc/koha/sites/$name/koha-conf.xml); |
| 48 |
passwd=$(xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/$name/koha-conf.xml); |
49 |
passwd=$(xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/$name/koha-conf.xml); |
| 49 |
if [ -t 1 ]; then |
50 |
if [ -t 1 ]; then |
|
|
51 |
echo "Username for $name: $user" |
| 50 |
echo "Password for $name: $passwd" |
52 |
echo "Password for $name: $passwd" |
| 51 |
echo "Press enter to clear the screen..." |
53 |
echo "Press enter to clear the screen..." |
| 52 |
read anykey |
54 |
read anykey |
| 53 |
- |
|
|