WSL/SLF GitLab Repository

Commit a82c8a55 authored by Sam's avatar Sam
Browse files

modify postgres init scripts to use envidat dbs

parent 0d24b6d7
......@@ -5,10 +5,10 @@ echo "Backup and restoring $DB_CKAN_NAME via pipe to new host."
PGPASSWORD="$DB_PASS" pg_dump --verbose --format c \
--host "$DB_HOST" --username "$DB_USER" "$DB_CKAN_NAME" \
| pg_restore --verbose --exit-on-error \
--username postgres --dbname postgres
--username postgres --dbname "$DB_CKAN_NAME"
echo "Backup and restoring $DB_DOI_NAME via pipe to new host."
PGPASSWORD="$DB_PASS" pg_dump --verbose --format c \
--host "$DB_HOST" --username "$DB_USER" "$DB_DOI_NAME" \
| pg_restore --verbose --exit-on-error \
--username postgres --dbname postgres
--username postgres --dbname "$DB_DOI_NAME"
#!/bin/bash
set -e
psql -v ON_ERROR_STOP=1 --username postgres --dbname postgres <<-EOSQL
psql -v ON_ERROR_STOP=1 --username postgres --dbname "$DB_CKAN_NAME" <<-EOSQL
CREATE EXTENSION IF NOT EXISTS postgis;
CREATE EXTENSION IF NOT EXISTS postgis_topology;
CREATE EXTENSION IF NOT EXISTS fuzzystrmatch;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment