From 99d7d807e6f3a586a2f6449bbb9bea118fd280ef Mon Sep 17 00:00:00 2001 From: Jeff McKenna Date: Thu, 16 May 2024 14:46:30 -0300 Subject: [PATCH] handle PostGIS 3.4 in demo --- .github/dependabot.yml | 8 ++++++++ demo/install.sh.in | 6 ++++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..c11a11f --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "github-actions" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/demo/install.sh.in b/demo/install.sh.in index 535ffa1..54411a8 100755 --- a/demo/install.sh.in +++ b/demo/install.sh.in @@ -11,8 +11,10 @@ PGUSER=postgres SHP2PGSQL=@SHP2PGSQL@ DB=tinyows_demo -if [ -d /usr/local/pgsql/share/contrib/postgis-3.3 ]; then - PGSHARE=/usr/local/pgsql/share/contrib/postgis-3.3 +if [ -d /usr/local/pgsql/share/contrib/postgis-3.4 ]; then + PGSHARE=/usr/local/pgsql/share/contrib/postgis-3.4 +elif [ -d /usr/local/pgsql/share/contrib/postgis-3.3 ]; then + PGSHARE=/usr/local/pgsql/share/contrib/postgis-3.3 elif [ -d /usr/local/pgsql/share/contrib/postgis-3.2 ]; then PGSHARE=/usr/local/pgsql/share/contrib/postgis-3.2 elif [ -d /usr/local/pgsql/share/contrib/postgis-3.1 ]; then