File: virtuoso-opensource-7.postrm

package info (click to toggle)
virtuoso-opensource 7.2.5.1+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 284,776 kB
  • sloc: ansic: 641,220; sql: 490,409; xml: 269,570; java: 83,893; javascript: 79,900; cpp: 36,927; sh: 31,648; cs: 25,702; php: 12,690; yacc: 10,227; lex: 7,601; makefile: 7,125; jsp: 4,523; awk: 1,697; perl: 1,013; ruby: 1,003; python: 326
file content (33 lines) | stat: -rw-r--r-- 862 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
#!/bin/bash

set -e

. /usr/share/debconf/confmodule

if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }

FILE_INI="/etc/virtuoso-opensource-7/virtuoso.ini"
FILE_ODBC_DSN="/usr/share/virtuoso-opensource-7/odbc.ini"

invoke-rc.d virtuoso-opensource-7 stop || true

if [ "$1" == "purge" ]; then
	# log files can go without warning...
	rm -rf /var/log/virtuoso-opensource-7

	# ...but get explicit confirmation before removing databases
	db_input high virtuoso-opensource-7/check-remove-databases || true
	db_go || true
	db_get virtuoso-opensource-7/check-remove-databases || true
	if [ "$RET" == "true" ]; then
		rm -rf /var/lib/virtuoso-opensource-7
	fi

	rm -f $FILE_INI
	rm -f $FILE_ODBC_DSN

	update-rc.d virtuoso-opensource-7 remove >/dev/null || exit $?
fi

#DEBHELPER#