File: dhis-client.config

package info (click to toggle)
dhis-client 5.2-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 180 kB
  • ctags: 131
  • sloc: ansic: 988; makefile: 68; sh: 51
file content (18 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

# Source debconf library.
. /usr/share/debconf/confmodule
db_version 2.0

package=dhis-client
conf=/etc/dhid.conf

if [ ! -f $conf ] || ! grep -q -v '^;' $conf; then
	db_fset $package/register_with_provider seen false
	db_input high $package/register_with_provider || true
elif ! grep -q '{' $conf && grep -q -v '^;' $conf; then
	db_fset $package/old_conf_warn seen false
	db_input high $package/old_conf_warn || true
fi
db_go
db_stop