3 # Source debconf library.
4 . /usr/share/debconf/confmodule
6 #DSFHELPER:handle-mainconffile#
9 init_debconf_from_mainconffile
11 #DSFHELPER:get-pw-from-debconf#
12 #DSFHELPER:create-random-pw#
13 #DSFHELPER:common-variables#
14 #DSFHELPER:dbhost-variables#
15 #DSFHELPER:dbpasswd-variables#
17 db_fget @PACKAGE@/shared/admin_password seen || true
18 if [ "$RET" = "false" ]; then
19 if [ "$(get_pw @PACKAGE@/shared/admin_password high)" = "not-asked" ] ; then
20 db_set @PACKAGE@/shared/admin_password $(gen_random_pw)
21 db_get @PACKAGE@/shared/admin_password || true
22 echo "Since you asked not to see all the debconf questions, I generated a random"
23 echo "password for the admin user. It is '${RET}'." ;
24 db_fset @PACKAGE@/shared/admin_password seen true
28 #DSFHELPER:host-variables#
29 #DSFHELPER:shellhost-variables#
30 #DSFHELPER:users-variables#
31 #DSFHELPER:lists-variables#
32 #DSFHELPER:downloadhost-variables#
33 #DSFHELPER:groupid-variables#
38 update_mainconffile $vars