File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ $STD apt-get install -y postgresql-16
46
46
DB_NAME=" outline"
47
47
DB_USER=" outline"
48
48
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) "
50
50
$STD sudo -u postgres psql -c " CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS ';"
51
51
$STD sudo -u postgres psql -c " CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCODING 'UTF8' TEMPLATE template0;"
52
52
$STD sudo -u postgres psql -c " ALTER ROLE $DB_USER SET client_encoding TO 'utf8';"
@@ -103,4 +103,4 @@ msg_info "Cleaning up"
103
103
rm -rf $temp_file
104
104
$STD apt-get -y autoremove
105
105
$STD apt-get -y autoclean
106
- msg_ok " Cleaned"
106
+ msg_ok " Cleaned"
You can’t perform that action at this time.
0 commit comments