cartodb/script/create_dev_user

26 lines
478 B
Plaintext
Raw Normal View History

2020-06-15 10:58:47 +08:00
#!/bin/sh
2021-01-24 16:18:54 +08:00
if test -n "$1"; then
SUBDOMAIN="$1"
else
echo -n "Enter a subdomain: "; read SUBDOMAIN
fi
if test -n "$2"; then
PASSWORD="$2"
else
echo -n "Enter a password (cleartext!): "; read PASSWORD
fi
if test -n "$3"; then
EMAIL="$3"
else
echo -n "Enter an email: "; read EMAIL
fi
echo "--- Creating dev user"
bundle exec rake cartodb:db:create_dev_user --trace SUBDOMAIN="${SUBDOMAIN}" \
PASSWORD="${PASSWORD}" \
2020-06-15 10:58:47 +08:00
EMAIL="${EMAIL}"
2021-01-24 16:18:54 +08:00
if test $? -ne 0; then exit 1; fi