1
0
mirror of https://github.com/tteck/Proxmox.git synced 2024-11-28 09:33:13 +02:00

Update linkwarden-install.sh

fixes https://github.com/tteck/Proxmox/issues/3065
This commit is contained in:
tteckster 2024-05-25 13:51:52 -04:00 committed by GitHub
parent 574226d993
commit a94bc0234f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,7 @@ msg_ok "Cloned Linkwarden Repository"
msg_info "Setting up PostgreSQL DB"
DB_NAME=linkwardendb
DB_USER=linkwarden
DB_PASS="$(openssl rand -base64 18 | cut -c1-13)"
DB_PASS="$(openssl rand -base64 18 | tr -d '/' | cut -c1-13)"
$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 TEMPLATE template0;"