django_admin_init.exp 362 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env expect
  2. set timeout -1
  3. spawn /usr/local/bin/manage.sh
  4. expect "Would you like to create one now" {
  5. send "yes\r"
  6. }
  7. expect "Username" {
  8. send "root\r"
  9. }
  10. expect "Email address:" {
  11. send "root.graphite@mailinator.com\r"
  12. }
  13. expect "Password:" {
  14. send "root\r"
  15. }
  16. expect "Password *:" {
  17. send "root\r"
  18. }
  19. expect "Superuser created successfully"