Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 47 lines (42 sloc) 1.455 kb
7647f9e @racke installation/deinstallation of Interchange demo catalog completed for no...
racke authored
1 #! /bin/sh -e
2 #
0a55170 @racke Added missing dbconfig-common hooks and set defaults for database name a...
racke authored
3 # Copyright 2000,2001,2004,2008 by Stefan Hornburg (Racke) <racke@linuxia.de>
7647f9e @racke installation/deinstallation of Interchange demo catalog completed for no...
racke authored
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public
16 # License along with this program; if not, write to the Free
07f71a7 @pajamian New Free Software Foundation Address in headers of various files
pajamian authored
17 # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
18 # MA 02110-1301 USA.
7647f9e @racke installation/deinstallation of Interchange demo catalog completed for no...
racke authored
19
20 # Source debconf library
21 . /usr/share/debconf/confmodule
22
0a55170 @racke Added missing dbconfig-common hooks and set defaults for database name a...
racke authored
23 # Call dbconfig-common hook
24 if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
25 . /usr/share/dbconfig-common/dpkg/postrm
26 dbc_go interchange-cat-standard $@
27 fi
28
7647f9e @racke installation/deinstallation of Interchange demo catalog completed for no...
racke authored
29 if [ "$1" = "purge" ]; then
059e10b @racke initial effort to replacing foundation with standard catalog in Debian p...
racke authored
30 db_get interchange-cat-standard/install
8549a3a @racke excess = removed
racke authored
31 if [ "$RET" = "true" ]; then
059e10b @racke initial effort to replacing foundation with standard catalog in Debian p...
racke authored
32 db_get interchange-cat-standard/purge
8549a3a @racke excess = removed
racke authored
33 if [ "$RET" = "true" ]; then
059e10b @racke initial effort to replacing foundation with standard catalog in Debian p...
racke authored
34 CATALOG=standard
7647f9e @racke installation/deinstallation of Interchange demo catalog completed for no...
racke authored
35 db_get interchange/docroot
36 DOCROOT=$RET
37 rm -rf /usr/lib/cgi-bin/ic/$CATALOG
38 rm -rf /var/lib/interchange/catalogs/$CATALOG
39 if [ "$DOCROOT" -a -d "$DOCROOT" ]; then
40 rm -rf $DOCROOT/$CATALOG
41 fi
42 fi
43 fi
44 fi
45
46 #DEBHELPER#
Something went wrong with that request. Please try again.