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
|
|
|
|
2020-07-23 04:32:20 +02:00
|
|
|
email=desdemona@zulip.com
|
2015-08-20 02:57:30 +02:00
|
|
|
|
2020-08-30 13:48:09 +02:00
|
|
|
mkdir -p var/puppeteer
|
2016-07-24 07:11:12 +02:00
|
|
|
|
2018-08-03 02:14:50 +02:00
|
|
|
password=$(./manage.py print_initial_password "$email" | grep -F "$email" | awk '{ print $2 }')
|
2020-10-15 04:55:57 +02:00
|
|
|
cat >var/puppeteer/test_credentials.js <<EOF
|
2016-05-26 12:36:22 +02:00
|
|
|
// Generated by tools/setup/generate-test-credentials
|
2024-11-13 00:59:12 +01:00
|
|
|
export const test_credentials = {default_user: {username: '$email', password: '$password'}};
|
2015-08-20 02:57:30 +02:00
|
|
|
EOF
|