File: virtuoso-opensource-7.config

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 (48 lines) | stat: -rw-r--r-- 1,414 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
46
47
48
#!/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 }

# get a new password for DBA and DAV users
while :; do
	RET=""
	db_input high virtuoso-opensource-7/dba-password || true
	db_go
	db_get virtuoso-opensource-7/dba-password
	DBA_PW="$RET"
	if [ -z "$DBA_PW" ]; then
		# if no password is given, leave it to postint to handle
		break
	fi
	# otherwise prompt to confirm the password
	db_input high virtuoso-opensource-7/dba-password-again || true
	db_go
	db_get virtuoso-opensource-7/dba-password-again
	if [ "$RET" == "$DBA_PW" ]; then
		DBA_PW=''
		break
	fi
	# no match, so try again...
	db_input critical virtuoso-opensource-7/password-mismatch
	db_set virtuoso-opensource-7/dba-password "" 
	db_set virtuoso-opensource-7/dba-password-again ""
	db_go
done

# see if they want to change the ports in advance
db_input low virtuoso-opensource-7/http-server-port || true
db_input low virtuoso-opensource-7/db-server-port || true

# maybe register a DSN for the default instance?
db_get libvirtodbc0/register-odbc-driver || true
if [ "$RET" = "true" ] && [ -e /usr/bin/odbcinst ]; then
	# default to true since odbcinst is available
	db_set virtuoso-opensource-7/register-odbc-dsn "true" || true
	db_input low virtuoso-opensource-7/register-odbc-dsn || true
fi

db_go || true