Skip to content

Commit

Permalink
Update Password Creation to only create Chars (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelroegl-brunner authored Dec 9, 2024
1 parent e4354c1 commit 4f66476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/umami-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ msg_ok "Installed Node.js"
msg_info "Setting up postgresql"
DB_NAME=umamidb
DB_USER=umami
DB_PASS="$(openssl rand -base64 18 | cut -c1-13)"
DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
SECRET_KEY="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32)"
$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;"
Expand Down

0 comments on commit 4f66476

Please sign in to comment.