Skip to content

Commit 1072fe0

Browse files
committed
fix pgcron
1 parent cd09b25 commit 1072fe0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Dockerfile.pgpool

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ RUN apt-get update \
2020
postgresql-$PG_MAJOR-pgaudit \
2121
postgresql-$PG_MAJOR-set-user \
2222
postgresql-$PG_MAJOR-repack \
23-
postgresql-$PG_MAJOR-pgpool2\
23+
postgresql-$PG_MAJOR-cron \
2424
postgresql-$PG_MAJOR-pgrouting \
25+
postgresql-$PG_MAJOR-pgpool2\
2526
&& rm -rf /var/lib/apt/lists/* \
2627
&& mkdir -p /docker-entrypoint-initdb.d
2728

scripts/setup-dbs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99
psql -v ON_ERROR_STOP=1 --username "${POSTGRES_USER}" --dbname "${POSTGRES_DB}" <<-EOSQL
1010
CREATE USER ${PG_PARSE_USER} LOGIN CONNECTION LIMIT 100 ENCRYPTED PASSWORD '${PG_PARSE_PASSWORD}';
1111
CREATE DATABASE ${PG_PARSE_DB} OWNER ${PG_PARSE_USER};
12-
CREATE EXTENSION pg_cron;
12+
CREATE EXTENSION IF NOT EXISTS pg_cron;
1313
\c ${PG_PARSE_DB};
1414
CREATE EXTENSION IF NOT EXISTS postgis;
1515
CREATE EXTENSION IF NOT EXISTS postgis_topology;

0 commit comments

Comments
 (0)