Explorar el Código

* Bug: línea 1063 hasta $ en variable
* Desactivar stdout en deshabilitarServicio

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

+ 6 - 6
install

@@ -853,13 +853,13 @@ habilitarServicio() {
 deshabilitarServicio() {
 	# Paramos y deshabilitamos el servicio (con SystemD, Upstart o SystemV)
 	# Intentamos con systemctl (SystemD)
-	echo -en "Deshabilitando Servicio '$1'" | tee -a $logFile
+	#echo -en "Deshabilitando Servicio '$1'" | tee -a $logFile
 	if [ $# -le 0 ];then
 		comprobarError 1 903
 	fi
 	which systemctl > /dev/null 2>&1
 	if [ $? -eq 0 ]; then
-		echo -en " (SystemD)..." | tee -a $logFile
+		#echo -en " (SystemD)..." | tee -a $logFile
 		systemctl stop $1 > /dev/null 2>&1
 		comprobarError $? 904 $1
 		systemctl disable $1 > /dev/null 2>&1
@@ -868,12 +868,12 @@ deshabilitarServicio() {
 		# Intentamos con service (Upstart)
 		which service > /dev/null 2>&1
 		if [ $? -eq 0 ]; then
-			echo -en " (Upstart)..." | tee -a $logFile
+			#echo -en " (Upstart)..." | tee -a $logFile
 			service $1 stop > /dev/null 2>&1
 			comprobarError $? 904 $1
 		else
 			# Intentamos con init.d (SystemV)
-			echo -en " (SystemV)..." | tee -a $logFile
+			#echo -en " (SystemV)..." | tee -a $logFile
 			/etc/init.d/$1 stop > /dev/null 2>&1
 			comprobarError $? 904 $1
 		fi
@@ -895,7 +895,7 @@ deshabilitarServicio() {
 		fi
 	fi
 	# Mejora: comprobar si el servicio está funcionando
-	echo -en " OK.\n" | tee -a $logFile
+	#echo -en " OK.\n" | tee -a $logFile
 }
 
 recargarServicio() {
@@ -1060,7 +1060,7 @@ mostrarExpress
 	fi
 # Configuración Database (Arrancar Base de Datos, establecer contraseña y configuración segura)
 	if [ $mySQLOn = true ] || [ $mariaDBOn = true ];then
-		habilitarServicio "sqlServerName"
+		habilitarServicio "$sqlServerName"
 		echo -en "Configurando Base de Datos MySQL..." | tee -a $logFile
 #		{
 #			echo -en "%s\n" $((100 * progreso / progresoTotal))