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.

10 lines
293 B

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