1 db_fget pkgname/shared/db_password seen || true
2 if [ "$RET" = "false" ]; then
3 db_set pkgname/shared/db_password $(gen_random_pw)
4 db_get pkgname/shared/db_password || true
5 echo "Since you asked not to see all the debconf questions, I generated a random"
6 echo "password for the database. Use it if you want to have a peek at the"
7 echo "database by hand. It is '${RET}'." ;
8 db_fset pkgname/shared/db_password seen true
14 update_mainconffile $vars