#!/bin/sh set -e PACKAGE_NAME="lliurex-ltsp-client" case "$1" in remove|purge|abort-install|disappear) #borramos la configuraciĆ³n del squid3 if grep -Fq "redirect_program /usr/bin/squidGuard -c /etc/squidguard/squidGuard.conf.lliurex" /etc/squid3/squid.conf then sed -i "s/redirect_program \/usr\/bin\/squidGuard -c \/etc\/squidguard\/squidGuard.conf.lliurex//g" /etc/squid3/squid.conf fi service squid3 restart #borramos el site y reiniciamos el apache a2dissite lliurexguard || true if [ -f /etc/apache2/sites-available/lliurexguard ] then rm /etc/apache2/sites-available/lliurexguard fi service apache2 restart || true ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0