1 #- beginning of included section from dbpasswd-variables.config
2 db_fget @PACKAGE@/shared/db_password seen || true
3 if [ "$RET" = "false" ]; then
5 if [ -e /etc/gforge/config.ini.d/debian-install-secrets.ini ]; then
6 pw=$(grep '^database_password=' /etc/gforge/config.ini.d/debian-install-secrets.ini | sed 's/database_password=//')
7 echo "Since you asked not to see all the debconf questions, I reused the"
8 echo "password for the database that was already set in "
9 echo "/etc/gforge/config.ini.d/debian-install-secrets.ini."
10 echo "Use it if you want to have a peek at the database by hand."
12 echo "Since you asked not to see all the debconf questions, I generated a random"
13 echo "password for the database. Use it if you want to have a peek at the"
14 echo "database by hand. It is '$pw'."
16 db_set @PACKAGE@/shared/db_password $pw
17 db_get @PACKAGE@/shared/db_password || true
18 db_fset @PACKAGE@/shared/db_password seen true
24 update_mainconffile $vars
25 #- end of included section from dbpasswd-variables.config