diff --git a/install/zipline-install.sh b/install/zipline-install.sh index 1380da9c7..8a705eaec 100644 --- a/install/zipline-install.sh +++ b/install/zipline-install.sh @@ -40,7 +40,7 @@ msg_info "Setting up PostgreSQL" DB_NAME=ziplinedb DB_USER=zipline DB_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13)" -SECRET_KEY="$(openssl rand -base64 42 | tr -dc 'a-zA-Z0-9' | cut -c1-13)" +SECRET_KEY="$(openssl rand -base64 42 | tr -dc 'a-zA-Z0-9')" $STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';" $STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCODING 'UTF8' TEMPLATE template0;" $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8';"