From 5b26bd2f29381870e91f5a0438d8b1eff70c6ae7 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 14 Apr 2026 19:43:53 +0200 Subject: [PATCH] fix(papermark): add missing Prisma env vars and bump PG to 17 Papermark's Prisma schema requires POSTGRES_PRISMA_URL and POSTGRES_PRISMA_URL_NON_POOLING. Also bump PostgreSQL to 17. --- install/papermark-install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install/papermark-install.sh b/install/papermark-install.sh index 1ab87361..50d29abd 100644 --- a/install/papermark-install.sh +++ b/install/papermark-install.sh @@ -14,15 +14,18 @@ network_check update_os NODE_VERSION="22" setup_nodejs -PG_VERSION="16" setup_postgresql +PG_VERSION="17" setup_postgresql PG_DB_NAME="papermark" PG_DB_USER="papermark" setup_postgresql_db fetch_and_deploy_gh_release "papermark" "mfts/papermark" "tarball" msg_info "Setting up Papermark" cd /opt/papermark +DB_URL="postgresql://${PG_DB_USER}:${PG_DB_PASS}@127.0.0.1:5432/${PG_DB_NAME}" cat </opt/papermark/.env -DATABASE_URL=postgresql://${PG_DB_USER}:${PG_DB_PASS}@127.0.0.1:5432/${PG_DB_NAME} +DATABASE_URL=${DB_URL} +POSTGRES_PRISMA_URL=${DB_URL} +POSTGRES_PRISMA_URL_NON_POOLING=${DB_URL} NEXTAUTH_SECRET=$(openssl rand -base64 32) NEXTAUTH_URL=http://${LOCAL_IP}:3000 NEXT_PUBLIC_BASE_URL=http://${LOCAL_IP}:3000