kopia lustrzana https://github.com/kartoza/docker-postgis
reactivate pg_cron (#398)
rodzic
d4ad04e57f
commit
904607b0a5
|
@ -102,7 +102,7 @@ RUN set -eux \
|
||||||
netcat postgresql-${POSTGRES_MAJOR_VERSION}-ogr-fdw \
|
netcat postgresql-${POSTGRES_MAJOR_VERSION}-ogr-fdw \
|
||||||
postgresql-${POSTGRES_MAJOR_VERSION}-postgis-${POSTGIS_MAJOR_VERSION}-scripts \
|
postgresql-${POSTGRES_MAJOR_VERSION}-postgis-${POSTGIS_MAJOR_VERSION}-scripts \
|
||||||
postgresql-plpython3-${POSTGRES_MAJOR_VERSION} postgresql-${POSTGRES_MAJOR_VERSION}-pgrouting \
|
postgresql-plpython3-${POSTGRES_MAJOR_VERSION} postgresql-${POSTGRES_MAJOR_VERSION}-pgrouting \
|
||||||
postgresql-server-dev-${POSTGRES_MAJOR_VERSION} \
|
postgresql-server-dev-${POSTGRES_MAJOR_VERSION} postgresql-${POSTGRES_MAJOR_VERSION}-cron \
|
||||||
postgresql-${POSTGRES_MAJOR_VERSION}-mysql-fdw
|
postgresql-${POSTGRES_MAJOR_VERSION}-mysql-fdw
|
||||||
|
|
||||||
# TODO a case insensitive match would be more robust
|
# TODO a case insensitive match would be more robust
|
||||||
|
|
|
@ -330,8 +330,8 @@ fi
|
||||||
if [ -z "${SHARED_PRELOAD_LIBRARIES}" ]; then
|
if [ -z "${SHARED_PRELOAD_LIBRARIES}" ]; then
|
||||||
if [[ $(dpkg -l | grep "timescaledb") > /dev/null ]];then
|
if [[ $(dpkg -l | grep "timescaledb") > /dev/null ]];then
|
||||||
SHARED_PRELOAD_LIBRARIES='timescaledb'
|
SHARED_PRELOAD_LIBRARIES='timescaledb'
|
||||||
#else
|
else
|
||||||
#SHARED_PRELOAD_LIBRARIES='pg_cron'cron
|
SHARED_PRELOAD_LIBRARIES='pg_cron'
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ for db in $(echo ${POSTGRES_DBNAME} | tr ',' ' '); do
|
||||||
if [[ ${RESULT} -eq 0 ]]; then
|
if [[ ${RESULT} -eq 0 ]]; then
|
||||||
echo "Create db ${db}"
|
echo "Create db ${db}"
|
||||||
su - postgres -c "createdb -O ${POSTGRES_USER} ${db}"
|
su - postgres -c "createdb -O ${POSTGRES_USER} ${db}"
|
||||||
#su - postgres -c "psql -c 'CREATE EXTENSION IF NOT EXISTS pg_cron cascade;' ${SINGLE_DB}"
|
su - postgres -c "psql -c 'CREATE EXTENSION IF NOT EXISTS pg_cron cascade;' ${SINGLE_DB}"
|
||||||
for ext in $(echo ${POSTGRES_MULTIPLE_EXTENSIONS} | tr ',' ' '); do
|
for ext in $(echo ${POSTGRES_MULTIPLE_EXTENSIONS} | tr ',' ' '); do
|
||||||
echo "Enabling \"${ext}\" in the database ${db}"
|
echo "Enabling \"${ext}\" in the database ${db}"
|
||||||
if [[ ${ext} != 'pg_cron' ]]; then
|
if [[ ${ext} != 'pg_cron' ]]; then
|
||||||
|
|
Ładowanie…
Reference in New Issue