Skip to content

Commit 4f66476

Browse files
Update Password Creation to only create Chars (#750)
1 parent e4354c1 commit 4f66476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/umami-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ msg_ok "Installed Node.js"
3737
msg_info "Setting up postgresql"
3838
DB_NAME=umamidb
3939
DB_USER=umami
40-
DB_PASS="$(openssl rand -base64 18 | cut -c1-13)"
40+
DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
4141
SECRET_KEY="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32)"
4242
$STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';"
4343
$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCODING 'UTF8' TEMPLATE template0;"

0 commit comments

Comments
 (0)