summaryrefslogtreecommitdiffstats
path: root/src/tests/modules/always/set_status_revive.unlang
blob: 3e71d3977f45c3b7b1f7c2677443c46483a87e8f (plain)
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
#
#  Fail a module...
#
%{db_status:dead}
db_status {
	fail = 1
}
if (!fail) {
	update reply {
		Filter-Id += "failed"
	}
}


#
#  ... Now revive it
#
%{db_status:alive}
db_status
if (ok) {
	update reply {
		Filter-Id += "success"
	}
}

update control {
	Cleartext-Password := "hello"
}