Skip to content

Commit 746f19b

Browse files
authored
Update zipline-install.sh (#2444)
Updated secret generation inline with official docs
1 parent a646a03 commit 746f19b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/zipline-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ msg_info "Setting up PostgreSQL"
4040
DB_NAME=ziplinedb
4141
DB_USER=zipline
4242
DB_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13)"
43-
SECRET_KEY="$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-13)"
43+
SECRET_KEY="$(openssl rand -base64 42 | tr -dc 'a-zA-Z0-9' | cut -c1-13)"
4444
$STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';"
4545
$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCODING 'UTF8' TEMPLATE template0;"
4646
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8';"
@@ -93,4 +93,4 @@ customize
9393
msg_info "Cleaning up"
9494
$STD apt-get -y autoremove
9595
$STD apt-get -y autoclean
96-
msg_ok "Cleaned"
96+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)