7 # Source debconf library
8 . /usr/share/debconf/confmodule
11 echo "! config $STATE !" >> /tmp/lxo-erp.log
15 while [ "$STATE" != 0 ] && [ "$STATE" -le "$LASTSTATE" ]; do
16 echo "! config $STATE !" >> /tmp/lxo-erp.log
19 db_set lx-office-erp/admin-password-conf true || true
20 db_input high lx-office-erp/admin-password-conf || true
24 db_get lx-office-erp/admin-password-conf
25 if [ "$RET" = "true" ]; then
26 db_input high lx-office-erp/admin-password || true
28 db_input high lx-office-erp/admin-password2 || true
34 db_get lx-office-erp/admin-password-conf
35 if [ "$RET" = "true" ]; then
36 db_get lx-office-erp/admin-password || true
38 db_get lx-office-erp/admin-password2 || true
39 if [ "$RET" != "$PASSPHRASE" ]; then
40 db_input high lx-office-erp/password-mismatch
41 db_reset lx-office-erp/admin-password || true
42 db_reset lx-office-erp/admin-password2 || true
43 db_fset lx-office-erp/admin-password seen false || true
44 db_fset lx-office-erp/admin-password2 seen false || true
50 db_input high lx-office-erp/lx-office-erp-user-postgresql-password || true
52 db_get lx-office-erp/lx-office-erp-user-postgresql-password || true
54 if [ "#$POSTGRESQLPWD" != "#" ]; then
55 db_input high lx-office-erp/lx-office-erp-user-postgresql-password2 || true
57 db_get lx-office-erp/lx-office-erp-user-postgresql-password2 || true
58 if [ "$RET" != "$POSTGRESQLPWD" ]; then
59 db_input high lx-office-erp/password-mismatch
60 db_reset lx-office-erp/lx-office-erp-user-postgresql-password || true
61 db_reset lx-office-erp/lx-office-erp-user-postgresql-password2 || true
62 db_fset lx-office-erp/lx-office-erp-user-postgresql-password seen false || true
63 db_fset lx-office-erp/lx-office-erp-user-postgresql-password2 seen false || true
67 db_input high lx-office-erp/password-empty || true
69 db_reset lx-office-erp/lx-office-erp-user-postgresql-password || true
70 db_fset lx-office-erp/lx-office-erp-user-postgresql-password seen false || true