aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik George <nik@naturalnet.de>2015-05-13 16:28:54 +0200
committerPetter Reinholdtsen <pere@hungry.com>2015-05-14 10:45:40 +0200
commit69e610aff23e3c047b2ea5b3bbd262a0303e769c (patch)
tree041ed6bc44915846163d66ff2320eb5820fe29fd
parent139bdcdf9718ae0e3bfd65fb8627b21e358e0f78 (diff)
downloadsitesummary-69e610aff23e3c047b2ea5b3bbd262a0303e769c.tar.gz
sitesummary-69e610aff23e3c047b2ea5b3bbd262a0303e769c.tar.bz2
sitesummary-69e610aff23e3c047b2ea5b3bbd262a0303e769c.tar.xz
Call db_stop before apache restart
-rw-r--r--debian/sitesummary.postinst33
1 files changed, 18 insertions, 15 deletions
diff --git a/debian/sitesummary.postinst b/debian/sitesummary.postinst
index 031b9f4..910d81a 100644
--- a/debian/sitesummary.postinst
+++ b/debian/sitesummary.postinst
@@ -41,21 +41,6 @@ EOF
case "$1" in
configure)
- # Enable it on fresh installations as before Apache 2.4. Check for
- # cgi.load existence to avoid trying to configure when installed after
- # apache2 is unpacked but not yet configured (bug #760084).
- if [ -z "$2" ] && \
- [ -e /etc/apache2/mods-available/cgi.load ] && \
- [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
- . /usr/share/apache2/apache2-maintscript-helper
- apache2_invoke enmod cgi.load
- apache2_invoke enconf sitesummary.conf
- fi
-
- # Make sure the cgi script can write to the storage area
- chown www-data /var/lib/sitesummary/tmpstorage \
- /var/lib/sitesummary/entries
-
# If the config file is missing, check debconf to see if the
# munin configuration feature should be enabled. This hidden
# debconf question allow preseeding during installation.
@@ -82,6 +67,24 @@ case "$1" in
update-rc.d -f sitesummary-client remove >/dev/null 2>&1 || :
fi
+ # Close debconf file handles before restarting Apache
+ db_stop
+
+ # Enable it on fresh installations as before Apache 2.4. Check for
+ # cgi.load existence to avoid trying to configure when installed after
+ # apache2 is unpacked but not yet configured (bug #760084).
+ if [ -z "$2" ] && \
+ [ -e /etc/apache2/mods-available/cgi.load ] && \
+ [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
+ . /usr/share/apache2/apache2-maintscript-helper
+ apache2_invoke enmod cgi.load
+ apache2_invoke enconf sitesummary.conf
+ fi
+
+ # Make sure the cgi script can write to the storage area
+ chown www-data /var/lib/sitesummary/tmpstorage \
+ /var/lib/sitesummary/entries
+
;;
abort-upgrade|abort-remove|abort-deconfigure)