File: conserver-client.config

package info (click to toggle)
conserver 8.2.1-1
  • links: PTS
  • area: non-free
  • in suites: stretch
  • size: 1,836 kB
  • ctags: 1,314
  • sloc: ansic: 22,099; sh: 3,507; makefile: 278
file content (25 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (6)
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
#!/bin/sh -e

. /usr/share/debconf/confmodule

conf=/etc/conserver/console.cf

if [ -r $conf ]; then
	SERVER=$(perl -ne 'print $1 if /master\s+([^;]+);/' $conf)
	PORT=$(perl   -ne 'print $1 if /port\s+([^;]+);/'   $conf)

	db_set conserver-client/server "$SERVER"
	db_set conserver-client/port   "$PORT"
fi

db_input medium conserver-client/config || true
db_go

db_get conserver-client/config
if [ "$RET" = "true" ]; then
	db_input medium conserver-client/server || true
	db_go

	db_input medium conserver-client/port || true
	db_go
fi