Skip to content

Commit e175895

Browse files
authored
remove extra slashes in OpenAPI local OGC API schema URLs (#452)
1 parent 1404226 commit e175895

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

debian/postinst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,3 @@ export PYGEOAPI_OPENAPI=/opt/msc-pygeoapi/conf/msc-pygeoapi-openapi.yml
4343

4444
mkdir -p $XDG_CACHE_HOME
4545
chown -R geoadm.geoadm $XDG_CACHE_HOME
46-
47-
# prepare hydrometric realtime
48-
#msc-pygeoapi data hydrometric_realtime cache-stations

debian/rules

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ override_dh_auto_configure:
2727
# Set version in theme/templates/_base.html
2828
sed -i "s/MSC_PYGEOAPI_VERSION/$(MSC_PYGEOAPI_VERSION)/" theme/templates/_base.html
2929

30+
# Remove extra slashes in OpenAPI local OGC API schema URLs
31+
sed -i "s/\/\/schemas\/ogc/\/schemas\/ogc/g" deploy/default/msc-pygeoapi-openapi.yml
32+
3033
# Download themes-gcweb.zip, check if downloaded, and unzip
3134
curl -L https://github.com/wet-boew/GCWeb/releases/download/v14.6.0/themes-dist-14.6.0-gcweb.1.zip -o ./themes-gcweb.zip
3235
test -f ./themes-gcweb.zip || { echo "themes-gcweb.zip not found!"; exit 1; }
@@ -46,4 +49,4 @@ override_dh_auto_test:
4649

4750
override_dh_clean:
4851
dh_clean
49-
rm -rf debian/schemas.opengis.net/ogcapi/*.zip
52+
rm -rf debian/schemas.opengis.net/ogcapi/*.zip

0 commit comments

Comments
 (0)