5
. /usr/share/debconf/confmodule
8
# only ask this question on fresh installs.
9
if [ "$1" = "configure" ] && [ -z "$2" ]; then
12
db_input critical netams/admin-password || true
14
db_get netams/admin-password
15
# if password isn't empty we ask for password verification
16
if [ -z "$RET" ]; then
17
db_fset netams/password-empty seen false
18
db_input critical netams/password-empty
22
db_input critical netams/admin-password-again || true
24
db_get netams/admin-password-again
25
if [ "x$RET" = "x$admin_pw" ]; then
27
db_set netams/admin-password-again ""
28
# set this fields as unseen for situation when dbconfig failed and
29
# config will be started again
30
db_fset netams/admin-password seen false
31
db_fset netams/admin-password-again seen false
34
db_fset netams/password-mismatch seen false
35
db_input critical netams/password-mismatch
36
db_set netams/admin-password ""
37
db_set netams/admin-password-again ""
42
if [ -f /usr/share/dbconfig-common/dpkg/config ]; then
47
# source dbconfig-common stuff
48
. /usr/share/dbconfig-common/dpkg/config
52
db_input medium netams/reconfigure-webserver || true