diff options
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 |