|
@@ -623,74 +623,74 @@ mostrarExpress
|
|
|
# Servidor Web
|
|
|
if [ $apacheOn = true ]; then
|
|
|
printf "Instalando Web Server Apache..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
instalarApache
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Instalando Web Server Apache..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Instalando Web Server Apache..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
elif [ $nginxOn = true ]; then
|
|
|
printf "Instalando Web Server Nginx..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
instalarNginx
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Instalando Web Server Nginx..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Instalando Web Server Nginx..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
fi
|
|
|
# Base de Datos
|
|
|
if [ $mySQLOn = true ]; then
|
|
|
printf "Instalando Base de Datos MySQL..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
instalarMySQL
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Instalando Base de Datos MySQL..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Instalando Base de Datos MySQL..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
elif [ $mariaDBOn = true ]; then
|
|
|
printf "Instalando Base de Datos MariaDB..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
instalarMariaDB
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Instalando Base de Datos MariaDB..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Instalando Base de Datos MariaDB..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
fi
|
|
|
# PHP
|
|
|
if [ $phpOn = true ]; then
|
|
|
printf "Instalando PHP-7..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
instalarPHP
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Instalando PHP-7..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Instalando PHP-7..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
fi
|
|
|
# SSL/TLS
|
|
|
# Falta por implementar
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
sleep 2
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Instalando SSL/TLS..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Instalando SSL/TLS..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
# MediaWiki
|
|
|
if [ $mediaWikiOn = true ]; then
|
|
|
printf "Instalando MediaWiki..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
sleep 2
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Instalando MediaWiki..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Instalando MediaWiki..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
fi
|
|
|
# Moodle
|
|
|
if [ $moodleOn = true ]; then
|
|
|
printf "Instalando Moodle..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
sleep 2
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Instalando Moodle..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Instalando Moodle..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
fi
|
|
|
|
|
@@ -701,94 +701,94 @@ mostrarExpress
|
|
|
# Configuración Apache
|
|
|
# Virtual Hosts
|
|
|
printf "Configurando Servidor Web..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
sleep 2
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Configurando Servidor Web..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Configurando Servidor Web..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
# Configuración Database
|
|
|
# Arrancar Base de Datos, establecer contraseña y configuración segura
|
|
|
if [ $mySQLOn = true ];then
|
|
|
printf "Configurando Base de Datos MySQL..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
habilitarServicio mysql
|
|
|
establecerSQLPasswd
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Configurando Base de Datos MySQL..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Configurando Base de Datos MySQL..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
fi
|
|
|
if [ $mariaDBOn = true ];then
|
|
|
printf "Configurando Base de Datos MAriaDB..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
habilitarServicio mariadb
|
|
|
establecerSQLPasswd
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Configurando Base de Datos MariaDB..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Configurando Base de Datos MariaDB..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
fi
|
|
|
# Configuración PHP
|
|
|
# cgi.fix_pathinfo=0
|
|
|
# Configurar máximo de subida de archivos
|
|
|
printf "Configurando PHP-7..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
sleep 2
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Configurando PHP-7..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Configurando PHP-7..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
# Configuración MediWiki
|
|
|
printf "Configurando MediaWiki..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
sleep 2
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Configurando MediaWiki..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Configurando MediaWiki..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
# Configuración Moodle
|
|
|
printf "Configurando Moodle..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
sleep 2
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Configurando Moodle..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Configurando Moodle..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
# Arrancar y habilitar todos los servicios (SystemD, Service o SystemV)
|
|
|
printf "Arrancando Servicios..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
sleep 2
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Arrancando Servicios..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Arrancando Servicios..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
# Añadir reglas del cortafuegos
|
|
|
printf "Configurando Cortafuegos..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
sleep 2
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Configurando Cortafuegos..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Configurando Cortafuegos..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
# Configuración SSL/TLS
|
|
|
# Generar certificados
|
|
|
# Configurar certificados
|
|
|
printf "Configurando SSL/TLS..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
sleep 2
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Configurando SSL/TLS..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Configurando SSL/TLS..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
# Configurar actualizaciones
|
|
|
if [ $actualizacionesOn = true ]; then
|
|
|
printf "Configurando actualizaciones automáticas..."
|
|
|
- {
|
|
|
- printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
+# {
|
|
|
+# printf "%s\n" $((100 * progreso / progresoTotal))
|
|
|
sleep 2
|
|
|
progreso=$((progreso + 1))
|
|
|
- } > >(whiptail --gauge "Configurando actualizaciones automáticas..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
+# } > >(whiptail --gauge "Configurando actualizaciones automáticas..." $((ALTO * 4 / 10)) $((ANCHO * 9 / 10)) $((100 * progreso / progresoTotal)))
|
|
|
printf " OK.\n"
|
|
|
fi
|
|
|
|