Skip to content

Commit

Permalink
Remove POSTGRES_PORT since PGPORT already works
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHayes committed Feb 4, 2018
1 parent cf0a1fd commit 2ca7442
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion 10-2.4/alpine/update-postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ POSTGIS_VERSION="${POSTGIS_VERSION%%+*}"
# Load PostGIS into both template_database and $POSTGRES_DB
for DB in template_postgis "$POSTGRES_DB" "${@}"; do
echo "Updating PostGIS extensions '$DB' to $POSTGIS_VERSION"
psql -p "${POSTGRES_PORT:-5432}" --dbname="$DB" -c "
psql --dbname="$DB" -c "
-- Upgrade PostGIS (includes raster)
CREATE EXTENSION IF NOT EXISTS postgis VERSION '$POSTGIS_VERSION';
ALTER EXTENSION postgis UPDATE TO '$POSTGIS_VERSION';
Expand Down
2 changes: 1 addition & 1 deletion 10-2.4/update-postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ POSTGIS_VERSION="${POSTGIS_VERSION%%+*}"
# Load PostGIS into both template_database and $POSTGRES_DB
for DB in template_postgis "$POSTGRES_DB" "${@}"; do
echo "Updating PostGIS extensions '$DB' to $POSTGIS_VERSION"
psql -p "${POSTGRES_PORT:-5432}" --dbname="$DB" -c "
psql --dbname="$DB" -c "
-- Upgrade PostGIS (includes raster)
CREATE EXTENSION IF NOT EXISTS postgis VERSION '$POSTGIS_VERSION';
ALTER EXTENSION postgis UPDATE TO '$POSTGIS_VERSION';
Expand Down
2 changes: 1 addition & 1 deletion 9.3-2.4/alpine/update-postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ POSTGIS_VERSION="${POSTGIS_VERSION%%+*}"
# Load PostGIS into both template_database and $POSTGRES_DB
for DB in template_postgis "$POSTGRES_DB" "${@}"; do
echo "Updating PostGIS extensions '$DB' to $POSTGIS_VERSION"
psql -p "${POSTGRES_PORT:-5432}" --dbname="$DB" -c "
psql --dbname="$DB" -c "
-- Upgrade PostGIS (includes raster)
CREATE EXTENSION IF NOT EXISTS postgis VERSION '$POSTGIS_VERSION';
ALTER EXTENSION postgis UPDATE TO '$POSTGIS_VERSION';
Expand Down
2 changes: 1 addition & 1 deletion 9.3-2.4/update-postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ POSTGIS_VERSION="${POSTGIS_VERSION%%+*}"
# Load PostGIS into both template_database and $POSTGRES_DB
for DB in template_postgis "$POSTGRES_DB" "${@}"; do
echo "Updating PostGIS extensions '$DB' to $POSTGIS_VERSION"
psql -p "${POSTGRES_PORT:-5432}" --dbname="$DB" -c "
psql --dbname="$DB" -c "
-- Upgrade PostGIS (includes raster)
CREATE EXTENSION IF NOT EXISTS postgis VERSION '$POSTGIS_VERSION';
ALTER EXTENSION postgis UPDATE TO '$POSTGIS_VERSION';
Expand Down
2 changes: 1 addition & 1 deletion 9.4-2.4/alpine/update-postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ POSTGIS_VERSION="${POSTGIS_VERSION%%+*}"
# Load PostGIS into both template_database and $POSTGRES_DB
for DB in template_postgis "$POSTGRES_DB" "${@}"; do
echo "Updating PostGIS extensions '$DB' to $POSTGIS_VERSION"
psql -p "${POSTGRES_PORT:-5432}" --dbname="$DB" -c "
psql --dbname="$DB" -c "
-- Upgrade PostGIS (includes raster)
CREATE EXTENSION IF NOT EXISTS postgis VERSION '$POSTGIS_VERSION';
ALTER EXTENSION postgis UPDATE TO '$POSTGIS_VERSION';
Expand Down
2 changes: 1 addition & 1 deletion 9.4-2.4/update-postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ POSTGIS_VERSION="${POSTGIS_VERSION%%+*}"
# Load PostGIS into both template_database and $POSTGRES_DB
for DB in template_postgis "$POSTGRES_DB" "${@}"; do
echo "Updating PostGIS extensions '$DB' to $POSTGIS_VERSION"
psql -p "${POSTGRES_PORT:-5432}" --dbname="$DB" -c "
psql --dbname="$DB" -c "
-- Upgrade PostGIS (includes raster)
CREATE EXTENSION IF NOT EXISTS postgis VERSION '$POSTGIS_VERSION';
ALTER EXTENSION postgis UPDATE TO '$POSTGIS_VERSION';
Expand Down
2 changes: 1 addition & 1 deletion 9.5-2.4/alpine/update-postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ POSTGIS_VERSION="${POSTGIS_VERSION%%+*}"
# Load PostGIS into both template_database and $POSTGRES_DB
for DB in template_postgis "$POSTGRES_DB" "${@}"; do
echo "Updating PostGIS extensions '$DB' to $POSTGIS_VERSION"
psql -p "${POSTGRES_PORT:-5432}" --dbname="$DB" -c "
psql --dbname="$DB" -c "
-- Upgrade PostGIS (includes raster)
CREATE EXTENSION IF NOT EXISTS postgis VERSION '$POSTGIS_VERSION';
ALTER EXTENSION postgis UPDATE TO '$POSTGIS_VERSION';
Expand Down
2 changes: 1 addition & 1 deletion 9.5-2.4/update-postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ POSTGIS_VERSION="${POSTGIS_VERSION%%+*}"
# Load PostGIS into both template_database and $POSTGRES_DB
for DB in template_postgis "$POSTGRES_DB" "${@}"; do
echo "Updating PostGIS extensions '$DB' to $POSTGIS_VERSION"
psql -p "${POSTGRES_PORT:-5432}" --dbname="$DB" -c "
psql --dbname="$DB" -c "
-- Upgrade PostGIS (includes raster)
CREATE EXTENSION IF NOT EXISTS postgis VERSION '$POSTGIS_VERSION';
ALTER EXTENSION postgis UPDATE TO '$POSTGIS_VERSION';
Expand Down
2 changes: 1 addition & 1 deletion 9.6-2.4/alpine/update-postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ POSTGIS_VERSION="${POSTGIS_VERSION%%+*}"
# Load PostGIS into both template_database and $POSTGRES_DB
for DB in template_postgis "$POSTGRES_DB" "${@}"; do
echo "Updating PostGIS extensions '$DB' to $POSTGIS_VERSION"
psql -p "${POSTGRES_PORT:-5432}" --dbname="$DB" -c "
psql --dbname="$DB" -c "
-- Upgrade PostGIS (includes raster)
CREATE EXTENSION IF NOT EXISTS postgis VERSION '$POSTGIS_VERSION';
ALTER EXTENSION postgis UPDATE TO '$POSTGIS_VERSION';
Expand Down
2 changes: 1 addition & 1 deletion 9.6-2.4/update-postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ POSTGIS_VERSION="${POSTGIS_VERSION%%+*}"
# Load PostGIS into both template_database and $POSTGRES_DB
for DB in template_postgis "$POSTGRES_DB" "${@}"; do
echo "Updating PostGIS extensions '$DB' to $POSTGIS_VERSION"
psql -p "${POSTGRES_PORT:-5432}" --dbname="$DB" -c "
psql --dbname="$DB" -c "
-- Upgrade PostGIS (includes raster)
CREATE EXTENSION IF NOT EXISTS postgis VERSION '$POSTGIS_VERSION';
ALTER EXTENSION postgis UPDATE TO '$POSTGIS_VERSION';
Expand Down
2 changes: 1 addition & 1 deletion update-postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ POSTGIS_VERSION="${POSTGIS_VERSION%%+*}"
# Load PostGIS into both template_database and $POSTGRES_DB
for DB in template_postgis "$POSTGRES_DB" "${@}"; do
echo "Updating PostGIS extensions '$DB' to $POSTGIS_VERSION"
psql -p "${POSTGRES_PORT:-5432}" --dbname="$DB" -c "
psql --dbname="$DB" -c "
-- Upgrade PostGIS (includes raster)
CREATE EXTENSION IF NOT EXISTS postgis VERSION '$POSTGIS_VERSION';
ALTER EXTENSION postgis UPDATE TO '$POSTGIS_VERSION';
Expand Down

0 comments on commit 2ca7442

Please sign in to comment.