QGIS/debian/qgis-providers.postinst
Nyall Dawson 56d03f783f Ship a seperate srs.db file for proj >= 6 builds
It's too dangerous to reuse the existing one, as it breaks the
ability to run multiple versions of qgis (i.e. proj < 6 and proj >= 6)
on the same machine

Fixes #30569
2019-07-16 06:18:32 +10:00

14 lines
313 B
Bash
Executable File

#!/bin/sh
set -e
if [ "$1" = "triggered" ] || [ "$1" = "configure" ]; then
if [ -w /usr/share/qgis/resources/srs.db ] && [ -x /usr/lib/qgis/crssync ]; then
/usr/lib/qgis/crssync
fi
if [ -w /usr/share/qgis/resources/srs6.db ] && [ -x /usr/lib/qgis/crssync ]; then
/usr/lib/qgis/crssync
fi
fi
#DEBHELPER#