From 746f19b0b8969d40294db0d2279f1b47963b6738 Mon Sep 17 00:00:00 2001 From: V1d1o7 <56764154+V1d1o7@users.noreply.github.com> Date: Mon, 17 Feb 2025 02:30:34 -0500 Subject: [PATCH] Update zipline-install.sh (#2444) Updated secret generation inline with official docs --- install/zipline-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/zipline-install.sh b/install/zipline-install.sh index 0ff850a90..3584aea7b 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 32 | tr -dc 'a-zA-Z0-9' | cut -c1-13)" +SECRET_KEY="$(openssl rand -base64 42 | tr -dc 'a-zA-Z0-9' | cut -c1-13)" $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';" @@ -93,4 +93,4 @@ customize msg_info "Cleaning up" $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" \ No newline at end of file +msg_ok "Cleaned"