File: dhis-client.config

package info (click to toggle)
dhis-client 5.5-5
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 296 kB
  • ctags: 160
  • sloc: ansic: 1,245; makefile: 63; 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