aboutsummaryrefslogtreecommitdiffstats
path: root/debian/sitesummary.postinst
blob: fefb38f26f731af9a15c849d3a56d464ce87f5e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

# Adjust to the new config location, in /etc/apache2/conf.d/sitesummary
if [ -f /etc/apache2/sites-available/sitesummary ] ; then
    if [ -f /etc/apache2/sites-enabled//sitesummary ] &&
       [ -x /usr/sbin/a2dissite ] ; then
        a2dissite sitesummary
    fi
    rm /etc/apache2/sites-available/sitesummary
fi

# Make sure the cgi script can write to the storage area
chown www-data /var/lib/sitesummary/tmpstorage /var/lib/sitesummary/entries 

#DEBHELPER#