File: virtuoso-opensource-6.1.prerm

package info (click to toggle)
virtuoso-opensource 6.1.2%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 213,384 kB
  • ctags: 120,485
  • sloc: ansic: 631,183; sql: 420,245; xml: 272,257; java: 62,959; sh: 39,240; cpp: 37,890; cs: 24,942; php: 12,251; yacc: 8,812; lex: 7,135; makefile: 6,331; jsp: 3,739; asm: 3,281; ada: 1,681; awk: 1,639; pascal: 1,089; perl: 1,017; ruby: 1,000; python: 329
file content (32 lines) | stat: -rw-r--r-- 1,018 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
#!/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 }

db_get virtuoso-opensource-6.1/register-odbc-dsn || true
if [ "$RET" = "true" ]; then
	odbcinst -u -s -l -n VOS || true
fi

# removing from list of owners of this question removes us from it's choices
db_unregister virtuoso-opensource/primary-server

# now check to see if we were the current default vos-server
# (if so we need to delete the broken links)
if db_get virtuoso-opensource/primary-server; then
  db_metaget virtuoso-opensource/primary-server owners
  db_subst virtuoso-opensource/primary-server choices $RET
  db_metaget virtuoso-opensource/primary-server value
  if [ "virtuoso-opensource-6.1" = "$RET" ] ; then
		# prompt the user for a new choice
    db_fset virtuoso-opensource/primary-server seen false
    db_input medium virtuoso-opensource/primary-server || true
    db_go || true
  fi
fi

#DEBHELPER#