5
# Source debconf library.
6
. /usr/share/debconf/confmodule
8
# Establish the preliminaries.
12
# Is the password known
13
db_fget phabricator/phabricator_mysql_pwd seen
14
if [ "$RET" = "true" ]; then
15
db_get phabricator/phabricator_mysql_pwd || [ $? = 30 ]
16
db_set phabricator/pwd_check "$RET"
17
db_fset phabricator/pwd_check seen true
19
db_fset phabricator/pwd_check seen false
22
# Prompt the user for values
23
db_input high phabricator/domain_name || true
25
db_get phabricator/domain_name
26
if [ "$RET" = "" ]; then
27
db_reset phabricator/domain_name
30
db_input high phabricator/webserver || true
32
db_get phabricator/webserver
34
db_input high phabricator/phabricator_mysql_user || true
36
db_get phabricator/phabricator_mysql_user
37
if [ "$RET" = "" ]; then
38
db_reset phabricator/phabricator_mysql_user
44
db_input high phabricator/phabricator_mysql_pwd || true
46
db_get phabricator/phabricator_mysql_pwd
47
# if password isn't empty we ask for password verification
48
if [ -z "$RET" ]; then
49
db_fset phabricator/phabricator_mysql_pwd seen false
50
db_fset phabricator/pwd_check seen false
54
db_input high phabricator/pwd_check || true
56
db_get phabricator/pwd_check
57
if [ "$RET" = "$MYSQL_PW" ]; then
61
db_fset phabricator/password_mismatch seen false
62
db_input critical phabricator/password_mismatch
63
db_set phabricator/phabricator_mysql_pwd ""
64
db_set phabricator/pwd_check ""