From 86491da8b5ddca1dae547ccf5644b3459fb244ab Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Fri, 5 Dec 2025 13:48:43 +0100 Subject: [PATCH] Fix AdventureLog installation failure: missing postgis extension permissions (#9674) * Initial plan * Add PG_DB_EXTENSIONS="postgis" to fix installation error Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com> --- ct/adventurelog.sh | 4 ++++ install/adventurelog-install.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ct/adventurelog.sh b/ct/adventurelog.sh index 6e58828164..3d19a029ef 100644 --- a/ct/adventurelog.sh +++ b/ct/adventurelog.sh @@ -45,6 +45,10 @@ function update_script() { fetch_and_deploy_gh_release "adventurelog" "seanmorley15/adventurelog" PYTHON_VERSION="3.13" setup_uv + msg_info "Ensuring PostgreSQL Extensions" + $STD sudo -u postgres psql -d adventurelog_db -c "CREATE EXTENSION IF NOT EXISTS postgis;" + msg_ok "PostgreSQL Extensions Ready" + msg_info "Updating ${APP}" cp /opt/adventurelog-backup/backend/server/.env /opt/adventurelog/backend/server/.env cp -r /opt/adventurelog-backup/backend/server/media /opt/adventurelog/backend/server/media diff --git a/install/adventurelog-install.sh b/install/adventurelog-install.sh index 883c2c83eb..1fc3a7a6c5 100644 --- a/install/adventurelog-install.sh +++ b/install/adventurelog-install.sh @@ -25,7 +25,7 @@ msg_ok "Installed Dependencies" PYTHON_VERSION="3.13" setup_uv NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs PG_VERSION="17" PG_MODULES="postgis" setup_postgresql -PG_DB_NAME="adventurelog_db" PG_DB_USER="adventurelog_user" setup_postgresql_db +PG_DB_NAME="adventurelog_db" PG_DB_USER="adventurelog_user" PG_DB_EXTENSIONS="postgis" setup_postgresql_db fetch_and_deploy_gh_release "adventurelog" "seanmorley15/adventurelog" import_local_ip