File: config

package info (click to toggle)
blootbot 1.1.0-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,420 kB
  • ctags: 586
  • sloc: perl: 15,941; sh: 154; makefile: 56; sql: 45
file content (47 lines) | stat: -rw-r--r-- 654 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
#!/bin/sh -e

. /usr/share/debconf/confmodule

db_version 2.0

db_capb backup

STATE=1

while [ "$STATE" != 0 -a "$STATE" != 7 ]; do
    case "$STATE" in
	1)
	    db_input high blootbot/name || true
	;;
	2)
	    db_input high blootbot/password || true
	;;
	3)
	    db_input low blootbot/db/host || true
	;;
	4)
	    db_input high blootbot/db/name || true
	;;
	5)
	    db_input medium blootbot/db/username || true
	;;
	6)
	    db_input medium blootbot/db/password || true
	;;
    esac

    if db_go; then
	case "$STATE" in
	    *)
		STATE=$(($STATE + 1))
	    ;;
	esac
    else
	case "$STATE" in
	    *)
		STATE=$(($STATE - 1))
	    ;;
	esac
    fi
done