Explorar el Código

* Bug: línea 1113

Guzmán Castanedo Villalba hace 5 años
padre
commit
1ef912d604
Se han modificado 1 ficheros con 17 adiciones y 17 borrados
  1. 17 17
      install

+ 17 - 17
install

@@ -311,7 +311,6 @@ OSInfo() {
 			DIST=$(grep ^NAME= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
 			REV=$(grep ^VERSION= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
 			ID=$(grep ^ID= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
-			ID_LIKE=$(grep ^ID_LIKE= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
 			VERSION=$(grep ^VERSION_ID= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
 			for i in $ID; do
 				case $i in
@@ -1094,22 +1093,23 @@ mostrarDatabase() {
 			;;
 		ubuntu)
 			database=$(whiptail --title "BASE DE DATOS" --radiolist "<ESPACIO>: seleccionar   <TAB>: cambiar   <FLECHAS>: moverse\n\nEscoge la base de datos que quieres usar:" $((ALTO * 9 / 10)) $((ANCHO * 9 / 10)) 2 \
-		"MariaDB" "Instalar la base de datos MariaDB (fork de MySQL)" ON \
-		"MySQL" "Instalar la base de datos MySQL (uso no comercial)" OFF \
-		--ok-button "Continuar" --cancel-button "Salir" 3>&1 1>&2 2>&3)
-			comprobarError $? 1
-			case $database in
-				MariaDB)
-					mariaDBOn=true
-					dbType="mariadb"
-					;;
-				MySQL)
-					mySQLOn=true
-					dbType="mysqli"
-					;;
-				*)
-					comprobarError 1 200
-					;;
+			"MariaDB" "Instalar la base de datos MariaDB (fork de MySQL)" ON \
+			"MySQL" "Instalar la base de datos MySQL (uso no comercial)" OFF \
+			--ok-button "Continuar" --cancel-button "Salir" 3>&1 1>&2 2>&3)
+				comprobarError $? 1
+				case $database in
+					MariaDB)
+						mariaDBOn=true
+						dbType="mariadb"
+						;;
+					MySQL)
+						mySQLOn=true
+						dbType="mysqli"
+						;;
+					*)
+						comprobarError 1 200
+						;;
+				esac
 			;;
 		centos|fedora)
 			whiptail --title "BASE DE DATOS" --yesno "Para su distribucion $OS $DIST $REV, sólo está disponible la base de datos MariaDB." $((ALTO * 9 / 10)) $((ANCHO * 9 / 10)) --yes-button "Continuar" --no-button "Salir"