5 . /usr/share/debconf/confmodule
7 db_fget icinga2-classicui/adminpassword seen || true
10 if [ "$1" = "reconfigure" ]; then
14 if [ "$password_seen" != "true" ]; then
15 # the passwords are reset at the end of every postinst run,
16 # however, they are left in the "seen" state so that the
17 # admin is not prompted for them at every upgrade.
18 while [ ! "$passwordsmatch" ]; do
19 #only ask for a password if no htpasswd exists
20 db_input high icinga2-classicui/adminpassword || true
21 db_input high icinga2-classicui/adminpassword-repeat || true
23 db_get icinga2-classicui/adminpassword
25 db_get icinga2-classicui/adminpassword-repeat
27 if [ "$p1" = "$p2" ]; then
30 db_fset icinga2-classicui/adminpassword seen false
31 db_fset icinga2-classicui/adminpassword-repeat seen false
32 db_fset icinga2-classicui/adminpassword-mismatch seen false
33 db_input critical icinga2-classicui/adminpassword-mismatch || true