33 lines
918 B
Bash
Executable File
33 lines
918 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
SUBDOMAIN="dev"
|
|
PASSWORD="pass1234"
|
|
ADMIN_PASSWORD="pass1234"
|
|
EMAIL="dev@example.com"
|
|
|
|
echo "--- Creating databases"
|
|
rake cartodb:db:setup
|
|
|
|
echo "--- Create '${SUBDOMAIN}' user"
|
|
rake cartodb:db:create_user --trace SUBDOMAIN="${SUBDOMAIN}" \
|
|
PASSWORD="${PASSWORD}" ADMIN_PASSWORD="${ADMIN_PASSWORD}" \
|
|
EMAIL="${EMAIL}"
|
|
|
|
# # Update your quota to 100GB
|
|
echo "--- Updating quota to 100GB"
|
|
rake cartodb:db:set_user_quota["${SUBDOMAIN}",102400]
|
|
|
|
# # Allow unlimited tables to be created
|
|
echo "--- Allowing unlimited tables creation"
|
|
rake cartodb:db:set_unlimited_table_quota["${SUBDOMAIN}"]
|
|
|
|
# # Allow user to create private tables in addition to public
|
|
echo "--- Allowing private tables creation"
|
|
rake cartodb:db:set_user_private_tables_enabled["${SUBDOMAIN}",'true']
|
|
|
|
# # Set the account type
|
|
echo "--- Setting cartodb account type"
|
|
rake cartodb:db:set_user_account_type["${SUBDOMAIN}",'[DEDICATED]']
|