[med-svn] r18803 - trunk/packages/stacks/trunk/debian
Andreas Tille
tille at moszumanska.debian.org
Thu Feb 19 17:43:35 UTC 2015
Author: tille
Date: 2015-02-19 17:43:35 +0000 (Thu, 19 Feb 2015)
New Revision: 18803
Added:
trunk/packages/stacks/trunk/debian/stacks-web.prerm
Removed:
trunk/packages/stacks/trunk/debian/stacks-web.postrm
Modified:
trunk/packages/stacks/trunk/debian/stacks-web.postinst
Log:
Apackage configuration should be done before final removal (== prerm); try to fix lintian issue (not tested yet)
Modified: trunk/packages/stacks/trunk/debian/stacks-web.postinst
===================================================================
--- trunk/packages/stacks/trunk/debian/stacks-web.postinst 2015-02-19 17:41:08 UTC (rev 18802)
+++ trunk/packages/stacks/trunk/debian/stacks-web.postinst 2015-02-19 17:43:35 UTC (rev 18803)
@@ -7,8 +7,14 @@
if [ "$1" = configure ] ; then
#Lintain complains about this, but I do not know what is actually expected
#Manpage of a2enconf says that "a2enconf -m" is correct.
- a2enconf -m stacks-web
+ # a2enconf -m stacks-web
+ if [ -e /usr/share/apache2/apache2-maintscript-helper ]
+ then
+ . /usr/share/apache2/apache2-maintscript-helper
+ apache2_invoke enconf stacks-web || exit
+ fi
+
# Also sort out perms for export dir
chown 'root:www-data' /var/lib/stacks/export
chmod 770 /var/lib/stacks/export
Deleted: trunk/packages/stacks/trunk/debian/stacks-web.postrm
===================================================================
--- trunk/packages/stacks/trunk/debian/stacks-web.postrm 2015-02-19 17:41:08 UTC (rev 18802)
+++ trunk/packages/stacks/trunk/debian/stacks-web.postrm 2015-02-19 17:43:35 UTC (rev 18803)
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#DEBHELPER#
-
-if [ "$1" = remove -o "$1" = purge ] ; then
- #Lintain complains about this, but I do not know what is actually expected
- #Manpage of a2enconf says that "a2disconf -m" is correct.
- a2disconf -m stacks-web
-fi
Added: trunk/packages/stacks/trunk/debian/stacks-web.prerm
===================================================================
--- trunk/packages/stacks/trunk/debian/stacks-web.prerm (rev 0)
+++ trunk/packages/stacks/trunk/debian/stacks-web.prerm 2015-02-19 17:43:35 UTC (rev 18803)
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" = remove -o "$1" = purge ] ; then
+ #Lintain complains about this, but I do not know what is actually expected
+ #Manpage of a2enconf says that "a2disconf -m" is correct.
+# a2disconf -m stacks-web
+ if [ -e /usr/share/apache2/apache2-maintscript-helper ]
+ then
+ . /usr/share/apache2/apache2-maintscript-helper
+ apache2_invoke disconf stacks-web || exit
+ fi
+fi
More information about the debian-med-commit
mailing list