Explorar el Código

* Bug: encender servicios antes de configurar los VirtualHosts

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

+ 13 - 13
install

@@ -1091,6 +1091,19 @@ mostrarExpress
 #		} > >(whiptail --gauge "Configurando SSL/TLS..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
 		echo -en " OK.\n" | tee -a $logFile
 	fi
+# Arrancar y habilitar todos los servicios (SystemD, Service o SystemV)
+#	{
+#		echo -en "%s\n" $((100 * progreso / progresoTotal))
+		if [ $apacheOn = true ];then
+			habilitarServicio $webServerName
+		elif [ $nginxOn = true ];then
+			habilitarServicio $webServerName
+			if [ $phpOn = true ];then
+				habilitarServicio $phpFPMName
+			fi
+		fi
+		progreso=$((progreso + 1))
+#	} > >(whiptail --gauge "Arrancando Servicios..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
 # MediaWiki
 	if [ $mediaWikiOn = true ]; then
 		# Descargar MediaWiki
@@ -1136,19 +1149,6 @@ mostrarExpress
 		instalarPHPInfo
 		echo -en " OK.\n" | tee -a $logFile
 	fi
-# Arrancar y habilitar todos los servicios (SystemD, Service o SystemV)
-#	{
-#		echo -en "%s\n" $((100 * progreso / progresoTotal))
-		if [ $apacheOn = true ];then
-			habilitarServicio $webServerName
-		elif [ $nginxOn = true ];then
-			habilitarServicio $webServerName
-			if [ $phpOn = true ];then
-				habilitarServicio $phpFPMName
-			fi
-		fi
-		progreso=$((progreso + 1))
-#	} > >(whiptail --gauge "Arrancando Servicios..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
 # Añadir reglas del cortafuegos
 	echo -en "Configurando Cortafuegos..." | tee -a $logFile
 #	{