~percona-dev/percona-server/release-5.5.11-20.2-fix-bug-764138

« back to all changes in this revision

Viewing changes to build/debian/percona-server-server-5.5.config

  • Committer: Ignacio Nin
  • Date: 2011-03-13 17:18:23 UTC
  • mfrom: (33.3.17 release-5.5.8-20)
  • Revision ID: ignacio.nin@percona.com-20110313171823-m06xs104nekulywb
Merge changes from release-5.5.8-20 to 5.5.9

Merge changes from the release branch of 5.5.8 to 5.5.9. These include
the HandlerSocket and UDF directories and the building scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash -e
 
2
 
 
3
. /usr/share/debconf/confmodule
 
4
 
 
5
if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
 
6
${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }
 
7
 
 
8
CNF=/etc/mysql/my.cnf
 
9
 
 
10
# Beware that there are two ypwhich one of them needs the 2>/dev/null!
 
11
if test -n "`which ypwhich 2>/dev/null`"  &&  ypwhich >/dev/null 2>&1; then
 
12
  db_input high percona-server-server-5.5/nis_warning || true
 
13
  db_go
 
14
fi
 
15
 
 
16
# only ask this question on fresh installs, during "reconfiguration" and when 
 
17
# not upgrading from an existing 5.0 installation.
 
18
# there is also an additional check for empty root passwords in the
 
19
# postinst script when the tools are available for us to use.
 
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 percona-server-server/root_password || true
 
24
    db_go
 
25
    db_get percona-server-server/root_password
 
26
    # if password isn't empty we ask for password verification
 
27
    if [ -z "$RET" ]; then
 
28
      db_fset percona-server-server/root_password seen false
 
29
      db_fset percona-server-server/root_password_again seen false
 
30
      break
 
31
    fi
 
32
    ROOT_PW="$RET"
 
33
    db_input high percona-server-server/root_password_again || true
 
34
    db_go
 
35
    db_get percona-server-server/root_password_again
 
36
    if [ "$RET" == "$ROOT_PW" ]; then
 
37
      ROOT_PW=''
 
38
      break
 
39
    fi
 
40
    db_fset percona-server-server/password_mismatch seen false
 
41
    db_input critical percona-server-server/password_mismatch
 
42
    db_set percona-server-server/root_password "" 
 
43
    db_set percona-server-server/root_password_again ""
 
44
    db_go
 
45
  done
 
46
fi