#!/bin/sh set -e lliurex-sgbd --remove lliurex-moodle a2dissite moodle service apache2 reload if [ -f /var/lib/dnsmasq/config/moodle ]; then rm -rf /var/lib/dnsmasq/config/moodle service dnsmasq restart 2>/dev/null|| true fi DIVERT_LIST="/etc/moodle/config.php /etc/dbconfig-common/moodle.conf /usr/share/moodle/admin/index.php" for f in $DIVERT_LIST ; do if [ -f "${f}.real" ] ; then rm -f "${f}" dpkg-divert --package lliurex-moodle --rename --quiet --remove ${f} || echo "Unable to restore divert file \"$f\"" >&2 fi done #DEBHELPER# exit 0