#!/bin/bash

set -e

case "$1" in
    purge)
        for i in apache apache-perl apache-ssl; do
            rm -f /etc/$i/conf.d/mod_ngobjweb
            for ext in  .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist;  do
                rm -f /etc/$i/conf.d/mod_ngobjweb$ext
            done
            ucf --purge /etc/$i/conf.d/mod_ngobjweb
        done
        ;;
    *)
        ;;
esac

#DEBHELPER#
