diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2014-08-21 10:22:59 +0200 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2014-08-21 11:05:44 +0200 |
commit | 08e3a22d26ea236a64551a35de90379c64439ebf (patch) | |
tree | ffc3591239bca7a11bd802f95fc79c8b7cee1320 /debian/sitesummary.postinst | |
parent | 121ee06d385740e22ca02ba49e9b25a7040e9038 (diff) | |
download | sitesummary-08e3a22d26ea236a64551a35de90379c64439ebf.tar.gz sitesummary-08e3a22d26ea236a64551a35de90379c64439ebf.tar.bz2 sitesummary-08e3a22d26ea236a64551a35de90379c64439ebf.tar.xz |
Migrate setup to Apache 2.4 (Closes: #669782).
Rename conffile /etc/apache2/conf.d/sitesummary to
/etc/apache2/conf-available/sitesummary.conf and update
postinst to enable it by default on fresh installs.
Diffstat (limited to 'debian/sitesummary.postinst')
-rw-r--r-- | debian/sitesummary.postinst | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/debian/sitesummary.postinst b/debian/sitesummary.postinst index c1c82b9..a3301bf 100644 --- a/debian/sitesummary.postinst +++ b/debian/sitesummary.postinst @@ -37,6 +37,8 @@ EOF fi } +#DEBHELPER# + case "$1" in configure) @@ -50,6 +52,13 @@ case "$1" in rm /etc/apache2/sites-available/sitesummary fi + # Enable it on fresh installations as before Apache 2.4. + if [ -z "$2" ] && \ + [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then + . /usr/share/apache2/apache2-maintscript-helper + 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 @@ -91,6 +100,4 @@ case "$1" in ;; esac -#DEBHELPER# - exit 0 |