From 0871b9c84ca6622ad60e23946002f3ca15b44ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Thu, 27 Feb 2025 13:13:56 +0100 Subject: [PATCH] Change key to hex32 (#2709) --- install/outline-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/outline-install.sh b/install/outline-install.sh index 52fde65cf..436f4aadf 100644 --- a/install/outline-install.sh +++ b/install/outline-install.sh @@ -46,7 +46,7 @@ $STD apt-get install -y postgresql-16 DB_NAME="outline" DB_USER="outline" 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-32)" +SECRET_KEY="$(openssl rand -hex 32)" $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';" @@ -103,4 +103,4 @@ msg_info "Cleaning up" rm -rf $temp_file $STD apt-get -y autoremove $STD apt-get -y autoclean -msg_ok "Cleaned" +msg_ok "Cleaned" \ No newline at end of file