diff options
Diffstat (limited to 'debian/sitesummary.postinst')
-rw-r--r-- | debian/sitesummary.postinst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/debian/sitesummary.postinst b/debian/sitesummary.postinst index 7a77533..fefb38f 100644 --- a/debian/sitesummary.postinst +++ b/debian/sitesummary.postinst @@ -3,8 +3,11 @@ set -e # Adjust to the new config location, in /etc/apache2/conf.d/sitesummary -if [ -f /etc/apache2/sites-available/sitesummary ]; then - [ -x /usr/sbin/a2dissite ] && a2dissite 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 |