|
Lines 192-198
if [ "$op" = create ] || [ "$op" = request ] || [ "$op" = use ]
Link Here
|
| 192 |
then |
192 |
then |
| 193 |
if [ "$mysqlpwd" = "" ] |
193 |
if [ "$mysqlpwd" = "" ] |
| 194 |
then |
194 |
then |
| 195 |
mysqlpwd="$(pwgen -1)" |
195 |
mysqlpwd="$(pwgen -s 16 1)" |
| 196 |
fi |
196 |
fi |
| 197 |
else |
197 |
else |
| 198 |
mysqlpwd="$(getinstancemysqlpassword $name)" |
198 |
mysqlpwd="$(getinstancemysqlpassword $name)" |
|
Lines 220-226
then
Link Here
|
| 220 |
koha-create-dirs "$name" |
220 |
koha-create-dirs "$name" |
| 221 |
|
221 |
|
| 222 |
# Generate Zebra database password. |
222 |
# Generate Zebra database password. |
| 223 |
zebrapwd="$(pwgen -s 12 1)" |
223 |
zebrapwd="$(pwgen -s 16 1)" |
| 224 |
# Future enhancement: make this configurable for when your db is on |
224 |
# Future enhancement: make this configurable for when your db is on |
| 225 |
# another server. |
225 |
# another server. |
| 226 |
mysql_hostname="localhost" |
226 |
mysql_hostname="localhost" |
|
Lines 308-314
then
Link Here
|
| 308 |
|
308 |
|
| 309 |
|
309 |
|
| 310 |
# Change the default user's password. |
310 |
# Change the default user's password. |
| 311 |
staffpass="$(pwgen -1)" |
311 |
staffpass="$(pwgen 12 1)" |
| 312 |
staffdigest=$(echo -n "$staffpass" | |
312 |
staffdigest=$(echo -n "$staffpass" | |
| 313 |
perl -e ' |
313 |
perl -e ' |
| 314 |
use Digest::MD5 qw(md5_base64); |
314 |
use Digest::MD5 qw(md5_base64); |