Explorar el Código

* Bug: línea 637

Guzmán Castanedo Villalba hace 6 años
padre
commit
aecab2850b
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      install

+ 1 - 2
install

@@ -629,13 +629,12 @@ mostrarMediaWiki(){
 	# Introducir contraseña
 	control=false
 	error=""
-	# Leemos la contreseña (stdin) y confirmamos
 	while [ $control = false ]; do
 		passwdMediaWiki=$(whiptail --title "CONFIGURACION MEDIAWIKI" --passwordbox "$error""Introduzca la contraseña para el usuario administrador 'admin':" $((ALTO * 9 / 10)) $((ANCHO * 9 / 10)) --ok-button "Continuar" --nocancel 3>&1 1>&2 2>&3)
 		comprobarError $? 1
 		passwdMediaWiki2=$(whiptail --title "CONTRASEÑA SQL" --passwordbox "Confirme la contraseña:" $((ALTO * 9 / 10)) $((ANCHO * 9 / 10)) --ok-button "Continuar" --nocancel 3>&1 1>&2 2>&3)
 		comprobarError $? 1
-		if [ -z $sqlPasswd ] || [ -z $sqlPasswd2 ]; then
+		if [ -z $passwdMediaWiki ] || [ -z $passwdMediaWiki2 ]; then
 			error="ERROR: LA CONTRASEÑA NO PUEDE ESTAR VACIA.\n"
 		elif [ $sqlPasswd != $sqlPasswd2 ];then
 			error="ERROR: LAS CONTRASEÑAS NO COINCIDEN.\n"