source: lliurex-pmb/trunk/fuentes/debian/lliurex-pmb.prerm @ 4925

Last change on this file since 4925 was 4925, checked in by jrpelegrina, 4 years ago

Fix prerm

File size: 568 bytes
Line 
1#!/bin/sh
2
3# prerm code commented
4# pmb configured with lliurex-zero-pmb
5set -e
6opac_file="/etc/apache2-lliurex/sites-enabled/opac.conf"
7pmb_file="/etc/apache2-lliurex/sites-enabled/pmb.conf"
8DISSITE="/usr/local/sbin/a2dissite-lliurex"
9
10case "$1" in
11    remove|purge|abort-install|disappear)
12        if [ -f $opac_file ]; then
13                ${DISSITE} opac || true
14                a2dissite opac || true
15        fi
16
17        if [ -f $pmb_file ]; then
18                ${DISSITE} pmb || true
19                a2dissite pmb || true
20               
21        fi
22 
23        systemctl restart apache2-lliurex || true
24        systemctl restart apache2 || true
25        ;;
26
27esac
28#DEBHELPER#
29exit 0
Note: See TracBrowser for help on using the repository browser.