Skip to content

Commit e343c7b

Browse files
authored
Better DB pass (#5313)
1 parent 3e47e39 commit e343c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/planka-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ PG_VERSION="16" setup_postgresql
2626
msg_info "Setting up PostgreSQL Database"
2727
DB_NAME=planka
2828
DB_USER=planka
29-
DB_PASS="$(openssl rand -base64 18 | cut -c1-13)"
29+
DB_PASS=$(openssl rand -base64 16 | tr -d '/+=')
3030
$STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';"
3131
$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCODING 'UTF8' TEMPLATE template0;"
3232
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8';"

0 commit comments

Comments
 (0)