From e343c7b5aad81dff1cf2b9b2304e15daf5423b72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Fri, 20 Jun 2025 08:06:24 +0200 Subject: [PATCH] Better DB pass (#5313) --- install/planka-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/planka-install.sh b/install/planka-install.sh index b0cd1309c..03f8b984e 100644 --- a/install/planka-install.sh +++ b/install/planka-install.sh @@ -26,7 +26,7 @@ PG_VERSION="16" setup_postgresql msg_info "Setting up PostgreSQL Database" DB_NAME=planka DB_USER=planka -DB_PASS="$(openssl rand -base64 18 | cut -c1-13)" +DB_PASS=$(openssl rand -base64 16 | tr -d '/+=') $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';"