|
@@ -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
|
|
|
# {
|