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

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