mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	This is preparation for supporting using Python 3 in production. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
		
			
				
	
	
		
			16 lines
		
	
	
		
			444 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			444 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
set -e
 | 
						|
 | 
						|
cd "$(dirname "$0")"/../..
 | 
						|
 | 
						|
email=iago@zulip.com
 | 
						|
 | 
						|
mkdir -p var/casper
 | 
						|
 | 
						|
password=$(./manage.py print_initial_password "$email" | fgrep "$email" | awk '{ print $2 }')
 | 
						|
cat > var/casper/test_credentials.js <<EOF
 | 
						|
// Generated by tools/setup/generate-test-credentials
 | 
						|
var test_credentials = {default_user: {username: '$email', password: '$password'}};
 | 
						|
try { exports.test_credentials = test_credentials; } catch (e) {}
 | 
						|
EOF
 |