From eeafae190c2a36acb49f8c391e76fe2860ae9c61 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 30 Apr 2023 15:15:51 -0400 Subject: [PATCH] Update paperless-ngx-install.sh fix paperless-ngx incorrect user:pass https://github.com/tteck/Proxmox/issues/1376 --- install/paperless-ngx-install.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/install/paperless-ngx-install.sh b/install/paperless-ngx-install.sh index 8d31b183..55820dbb 100644 --- a/install/paperless-ngx-install.sh +++ b/install/paperless-ngx-install.sh @@ -94,7 +94,7 @@ msg_ok "Installed Natural Language Toolkit" msg_info "Setting up database" DB_USER=paperless -DB_PASS="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 13)" +DB_PASS="$(openssl rand -base64 18 | cut -c1-13)" DB_NAME=paperlessdb $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;" @@ -118,11 +118,10 @@ msg_info "Setting up admin Paperless-ngx User & Password" cat <>~/paperless.creds echo "Paperless-ngx WebUI User" >>~/paperless.creds