Skip to content

Commit 86491da

Browse files
CopilotMickLesk
andauthored
Fix AdventureLog installation failure: missing postgis extension permissions (#9674)
* Initial plan * Add PG_DB_EXTENSIONS="postgis" to fix installation error Co-authored-by: MickLesk <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: MickLesk <[email protected]>
1 parent 0d6ea7f commit 86491da

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ct/adventurelog.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ function update_script() {
4545
fetch_and_deploy_gh_release "adventurelog" "seanmorley15/adventurelog"
4646
PYTHON_VERSION="3.13" setup_uv
4747

48+
msg_info "Ensuring PostgreSQL Extensions"
49+
$STD sudo -u postgres psql -d adventurelog_db -c "CREATE EXTENSION IF NOT EXISTS postgis;"
50+
msg_ok "PostgreSQL Extensions Ready"
51+
4852
msg_info "Updating ${APP}"
4953
cp /opt/adventurelog-backup/backend/server/.env /opt/adventurelog/backend/server/.env
5054
cp -r /opt/adventurelog-backup/backend/server/media /opt/adventurelog/backend/server/media

install/adventurelog-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ msg_ok "Installed Dependencies"
2525
PYTHON_VERSION="3.13" setup_uv
2626
NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs
2727
PG_VERSION="17" PG_MODULES="postgis" setup_postgresql
28-
PG_DB_NAME="adventurelog_db" PG_DB_USER="adventurelog_user" setup_postgresql_db
28+
PG_DB_NAME="adventurelog_db" PG_DB_USER="adventurelog_user" PG_DB_EXTENSIONS="postgis" setup_postgresql_db
2929
fetch_and_deploy_gh_release "adventurelog" "seanmorley15/adventurelog"
3030
import_local_ip
3131

0 commit comments

Comments
 (0)