You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

9 lines
278 B

#!/usr/bin/env bash
if [[ "$#" -ne 3 ]]; then echo "Usage: $0 <username> <email> <password>" >&2; exit 1; fi
set -o errexit
python app/manage.py wait_for_db
python app/manage.py migrate
python app/manage.py create_admin --noinput --username="$1" --email="$2" --password="$3"