3
. /usr/share/debconf/confmodule
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 }
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
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
23
db_input high percona-server-server/root_password || true
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
33
db_input high percona-server-server/root_password_again || true
35
db_get percona-server-server/root_password_again
36
if [ "$RET" == "$ROOT_PW" ]; then
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 ""