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_input low gforge/shared/admin_login || true
18 db_fget gforge/shared/admin_password seen || true
19 if [ "$RET" = "false" ]; then
20 if [ "$(get_pw gforge/shared/admin_password high)" = "not-asked" ] ; then
21 db_set gforge/shared/admin_password $(gen_random_pw)
22 db_get gforge/shared/admin_password || true
23 echo "Since you asked not to see all the debconf questions, I generated a random"
24 echo "password for the admin user. It is '${RET}'." ;
25 db_fset gforge/shared/admin_password seen true
29 #DSFHELPER:host-variables#
30 #DSFHELPER:shellhost-variables#
31 #DSFHELPER:users-variables#
32 #DSFHELPER:lists-variables#
33 #DSFHELPER:downloadhost-variables#
34 #DSFHELPER:groupid-variables#
36 db_input low gforge/shared/skill_list || true
40 vars="admin_login admin_password skill_list"
41 update_mainconffile $vars