[osm-tile-server] 08/117: Added postinst for osm-tile-server-base
Ruben Undheim
rubund-guest at moszumanska.debian.org
Tue Nov 3 23:18:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
rubund-guest pushed a commit to branch master
in repository osm-tile-server.
commit b71173dd73b6ba923226198f623fa66933078ab5
Author: Ruben Undheim <ruben.undheim at gmail.com>
Date: Wed Sep 2 23:58:01 2015 +0200
Added postinst for osm-tile-server-base
---
debian/osm-tile-server-base.postinst | 46 ++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/debian/osm-tile-server-base.postinst b/debian/osm-tile-server-base.postinst
new file mode 100644
index 0000000..f13714e
--- /dev/null
+++ b/debian/osm-tile-server-base.postinst
@@ -0,0 +1,46 @@
+#!/bin/sh
+# postinst script for osm-tile-server
+#
+# see: dh_installdeb(1)
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see https://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+ #db_get osm-tile-server/db-name
+ #DBNAME=$RET
+
+ su osm -c "osm2pgsql --slim -d osmdb -C 1600 --hstore -S /usr/share/osm2pgsql/default.style /usr/share/osm-tile-server-base/samples/liechtenstein-latest.osm.pbf"
+
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osm-tile-server.git
More information about the Pkg-grass-devel
mailing list