[pycsw] 01/04: Use default shell and use relevant targets in maintainer scripts.
Bas Couwenberg
sebastic at xs4all.nl
Sat Oct 11 00:32:51 UTC 2014
This is an automated email from the git hooks/post-receive script.
sebastic-guest pushed a commit to branch master
in repository pycsw.
commit 3f3ce791fd2b59aba2385c4d956b4757b54bc51e
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sat Oct 11 02:10:13 2014 +0200
Use default shell and use relevant targets in maintainer scripts.
---
debian/pycsw-cgi.postinst | 10 ++++++++--
debian/pycsw-cgi.prerm | 9 +++++++--
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/debian/pycsw-cgi.postinst b/debian/pycsw-cgi.postinst
index 6542b8b..444d40e 100644
--- a/debian/pycsw-cgi.postinst
+++ b/debian/pycsw-cgi.postinst
@@ -1,13 +1,19 @@
#!/bin/sh
+
set -e
- if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
+
+if [ "$1" = configure ] ; then
+ if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke enmod cgi || exit $?
fi
- if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
+ if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke ensite pycsw || exit $?
fi
+fi
#DEBHELPER#
+
+exit 0
diff --git a/debian/pycsw-cgi.prerm b/debian/pycsw-cgi.prerm
index 79258b5..8db6e43 100644
--- a/debian/pycsw-cgi.prerm
+++ b/debian/pycsw-cgi.prerm
@@ -1,9 +1,14 @@
-#/bin/bash
+#/bin/sh
+
set -e
-if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
+if [ "$1" = remove ] ; then
+ if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke dissite pycsw || exit $?
fi
+fi
#DEBHELPER#
+
+exit 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pycsw.git
More information about the Pkg-grass-devel
mailing list