7 # Source debconf library
8 . /usr/share/debconf/confmodule
13 while [ "$STATE" != 0 ] && [ "$STATE" -le "$LASTSTATE" ]; do
16 db_set lx-office-erp/admin-password-conf true || true
17 db_input high lx-office-erp/admin-password-conf || true
21 db_get lx-office-erp/admin-password-conf
22 if [ "$RET" = "true" ]; then
23 db_input high lx-office-erp/admin-password || true
25 db_input high lx-office-erp/admin-password2 || true
31 db_get lx-office-erp/admin-password-conf
32 if [ "$RET" = "true" ]; then
33 db_get lx-office-erp/admin-password || true
35 db_get lx-office-erp/admin-password2 || true
36 if [ "$RET" != "$PASSPHRASE" ]; then
37 db_input high lx-office-erp/password-mismatch
38 db_reset lx-office-erp/admin-password || true
39 db_reset lx-office-erp/admin-password2 || true
40 db_fset lx-office-erp/admin-password seen false || true
41 db_fset lx-office-erp/admin-password2 seen false || true
47 db_input high lx-office-erp/lx-office-erp-user-postgresql-password || true
49 db_get lx-office-erp/lx-office-erp-user-postgresql-password || true
51 if [ "#$POSTGRESQLPWD" != "#" ]; then
52 db_input high lx-office-erp/lx-office-erp-user-postgresql-password2 || true
54 db_get lx-office-erp/lx-office-erp-user-postgresql-password2 || true
55 if [ "$RET" != "$POSTGRESQLPWD" ]; then
56 db_input high lx-office-erp/password-mismatch
57 db_reset lx-office-erp/lx-office-erp-user-postgresql-password || true
58 db_reset lx-office-erp/lx-office-erp-user-postgresql-password2 || true
59 db_fset lx-office-erp/lx-office-erp-user-postgresql-password seen false || true
60 db_fset lx-office-erp/lx-office-erp-user-postgresql-password2 seen false || true
64 db_input high lx-office-erp/password-empty || true
66 db_reset lx-office-erp/lx-office-erp-user-postgresql-password || true
67 db_fset lx-office-erp/lx-office-erp-user-postgresql-password seen false || true