Skip to content

Commit 0871b9c

Browse files
authored
Change key to hex32 (#2709)
1 parent 0d4b4a1 commit 0871b9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/outline-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ $STD apt-get install -y postgresql-16
4646
DB_NAME="outline"
4747
DB_USER="outline"
4848
DB_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13)"
49-
SECRET_KEY="$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-32)"
49+
SECRET_KEY="$(openssl rand -hex 32)"
5050
$STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';"
5151
$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCODING 'UTF8' TEMPLATE template0;"
5252
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8';"
@@ -103,4 +103,4 @@ msg_info "Cleaning up"
103103
rm -rf $temp_file
104104
$STD apt-get -y autoremove
105105
$STD apt-get -y autoclean
106-
msg_ok "Cleaned"
106+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)