~knielsen/ourdelta/bug_484127_484120_2

« back to all changes in this revision

Viewing changes to bakery/debian-5.1/mariadb-server-5.1.config

  • Committer: Arjen Lentz
  • Date: 2009-10-28 03:20:03 UTC
  • mfrom: (54.4.30 ourdelta-mariadb51-2)
  • Revision ID: arjen@openquery.com-20091028032003-3ebv58q8zin6xxbd
Merge from 5.1 bakery branch
Made autobake-deb.sh from 5.1 branch into separate autobake51-deb.sh (nasty merge)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
  db_go
14
14
fi
15
15
 
16
 
# only ask this question on fresh installs and during "reconfiguration".  
 
16
# only ask this question on fresh installs, during "reconfiguration" and when 
 
17
# not upgrading from an existing 5.0 installation.
17
18
# there is also an additional check for empty root passwords in the
18
19
# postinst script when the tools are available for us to use.
19
 
if [ "$1" = "configure" ] && [ -z "$2" ] || [ "$1" = "reconfigure" ]; then
20
 
        db_input high mysql-server/root_password || true
21
 
        db_go
 
20
if [ "$1" = "configure" ] && ([ -z "$2" ] && [ ! -e "/var/lib/mysql/debian-5.0.flag" ] ) || [ "$1" = "reconfigure" ]; then
 
21
  while :; do
 
22
    RET=""
 
23
    db_input high mysql-server/root_password || true
 
24
    db_go
 
25
    db_get mysql-server/root_password
 
26
    # if password isn't empty we ask for password verification
 
27
    if [ -z "$RET" ]; then
 
28
      db_fset mysql-server/root_password seen false
 
29
      db_fset mysql-server/root_password_again seen false
 
30
      break
 
31
    fi
 
32
    ROOT_PW="$RET"
 
33
    db_input high mysql-server/root_password_again || true
 
34
    db_go
 
35
    db_get mysql-server/root_password_again
 
36
    if [ "$RET" == "$ROOT_PW" ]; then
 
37
      ROOT_PW=''
 
38
      break
 
39
    fi
 
40
    db_fset mysql-server/password_mismatch seen false
 
41
    db_input critical mysql-server/password_mismatch
 
42
    db_set mysql-server/root_password "" 
 
43
    db_set mysql-server/root_password_again ""
 
44
    db_go
 
45
  done
22
46
fi