File: mtop.config

package info (click to toggle)
mtop 0.6.6-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 256 kB
  • ctags: 153
  • sloc: perl: 1,445; sh: 179; makefile: 49
file content (95 lines) | stat: -rw-r--r-- 1,310 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/sh 

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

db_version 2.0
db_capb backup

STATE=1
while [ "$STATE"  != 0 -a "$STATE" != 8 ]
do
	case "$STATE" in
		1)
			db_input medium mtop/mysql_server || true
			if db_go
			then
				db_get mtop/mysql_server || true
				if [ ! -z "$RET" ]
				then
					STATE=2
				fi
			else
				STATE=0
			fi
		;;
		2)
			db_input low mtop/mysql_port || true
			if db_go
			then
				db_get mtop/mysql_port || true
				if [ ! -z "$RET" ]
				then
					STATE=3
				fi
			else
				STATE=1
			fi
		;;
		3)
			db_input medium mtop/root || true
			if db_go
			then
				db_get mtop/root || true
				if [ ! -z "$RET" ]
				then
					STATE=4
				fi
			else
				STATE=2
			fi
		;;
		4)
			db_input medium mtop/password || true
			if db_go
			then
				db_get mtop/password || true
				STATE=5
			else
				STATE=3
			fi
		;;
		5)
			db_input medium mtop/confirm || true
			if db_go
			then
				db_get mtop/confirm || true
				confirm="$RET"
				db_get mtop/password || true
				if [ "x$RET" != "x$confirm" ]
				then
					STATE=6
				else
					STATE=7
				fi
			else
				STATE=4
			fi
		;;
		6)
			db_input medium mtop/mismatch || true
			db_go
			STATE=4
		;;
		7)
			db_input low mtop/info || true
			db_go
			STATE=8
		;;
	esac
done

if [ "$STATE" = 0 ]
then
	exit 1
fi