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.
cartodb/script/create_dev_user

52 lines
1.4 KiB

#!/bin/sh
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
ADMIN_PASSWORD="$3"
else
echo -n "Enter an admin password (cleartext!): "; read ADMIN_PASSWORD
fi
if test -n "$4"; then
EMAIL="$4"
else
echo -n "Enter an email: "; read EMAIL
fi
echo "--- Creating databases"
bundle exec rake cartodb:db:setup --trace SUBDOMAIN="${SUBDOMAIN}" \
PASSWORD="${PASSWORD}" ADMIN_PASSWORD="${ADMIN_PASSWORD}" \
EMAIL="${EMAIL}"
if test $? -ne 0; then exit 1; fi
# # Update your quota to 10GB
# echo "--- Updating quota to 10GB"
# bundle exec rake cartodb:db:set_user_quota["${SUBDOMAIN}",10240]
# if test $? -ne 0; then exit 1; fi
# # Allow unlimited tables to be created
# echo "--- Allowing unlimited tables creation"
# bundle exec rake cartodb:db:set_unlimited_table_quota["${SUBDOMAIN}"]
# if test $? -ne 0; then exit 1; fi
# # Allow user to create private tables in addition to public
# echo "--- Allowing private tables creation"
# bundle exec rake cartodb:db:set_user_private_tables_enabled["${SUBDOMAIN}",'true']
# if test $? -ne 0; then exit 1; fi
# # Set the account type
# echo "--- Setting cartodb account type"
# bundle exec rake cartodb:db:set_user_account_type["${SUBDOMAIN}",'[DEDICATED]']
# if test $? -ne 0; then exit 1; fi