2016-01-12 13:08:43 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
2015-08-20 02:57:30 +02:00
|
|
|
|
2016-05-26 12:36:22 +02:00
|
|
|
cd "$(dirname "$0")"/../..
|
2015-08-20 02:57:30 +02:00
|
|
|
|
|
|
|
email=iago@zulip.com
|
|
|
|
|
2016-07-24 07:11:12 +02:00
|
|
|
mkdir -p var/casper
|
|
|
|
|
2016-11-22 01:44:16 +01:00
|
|
|
password=$(./manage.py print_initial_password "$email" | fgrep "$email" | awk '{ print $2 }')
|
2016-07-24 07:11:12 +02:00
|
|
|
cat > var/casper/test_credentials.js <<EOF
|
2016-05-26 12:36:22 +02:00
|
|
|
// Generated by tools/setup/generate-test-credentials
|
2016-04-13 04:49:47 +02:00
|
|
|
var test_credentials = {default_user: {username: '$email', password: '$password'}};
|
2015-08-20 02:57:30 +02:00
|
|
|
try { exports.test_credentials = test_credentials; } catch (e) {}
|
|
|
|
EOF
|