File: conserver-client.config

package info (click to toggle)
conserver 8.2.7-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,856 kB
  • sloc: ansic: 22,275; sh: 3,623; makefile: 285
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