File: uninstall

package info (click to toggle)
dtc 0.35.5-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 18,824 kB
  • sloc: php: 50,739; sh: 8,596; makefile: 572; perl: 148; xml: 25
file content (45 lines) | stat: -rwxr-xr-x 990 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh

VERBOSE_INSTALL=yes

if [ -f /etc/debian_version ] ; then
	. /usr/share/dtc/admin/install/debian_config
	. /usr/share/dtc/admin/install/functions

	. ${DTC_SAVED_INSTALL_CONFIG}
	if [ ""$conf_apache_version = "2" ] ; then
		PATH_HTTPD_CONF=/etc/apache2/apache2.conf
	else
		PATH_HTTPD_CONF=/etc/apache/httpd.conf
	fi

	PATH_HTTPD_CONF=/etc/apache2/apache2.conf
	DTCuninstallDaemons
	PATH_HTTPD_CONF=/etc/apache/httpd.conf
	uninstallHttpdConfig
fi

RPM=""
set +e
RPM=`which rpm`
set -e

if [ -x "$RPM" ] ; then
	if rpm -q coreutils >/dev/null ; then
		# Prepare this
		. /usr/share/dtc/admin/install/redhat_config
		. /usr/share/dtc/admin/install/functions
		. ${DTC_SAVED_INSTALL_CONFIG}
		# Then call the uninstaller!
		DTCuninstallDaemons
	fi
fi

if [ "`uname -s`" = "FreeBSD" ]; then
	. /usr/local/www/dtc/admin/install/bsd_config
	. /usr/local/www/dtc/admin/install/functions
	. ${DTC_SAVED_INSTALL_CONFIG}
	deleteGeneratedFiles
	DTCuninstallDaemons
	uninstallHttpdConfig
fi