Ver código fonte

* generarDHParam(): ocultar stdout y stderr

Guzmán Castanedo Villalba 5 anos atrás
pai
commit
a995b7689c
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      install

+ 3 - 1
install

@@ -1316,7 +1316,7 @@ generarDHParam() {
 		mkdir "$sslDir" 2>/dev/null
 		comprobarError $? 5 "$sslDir"
 	fi
-	openssl dhparam -out "$dhParamFile" 2048
+	openssl dhparam -out "$dhParamFile" 2048 >/dev/null 2>&1
 	comprobarError $? 403
 	# Configuramos Servidor Web
 	if [ $apacheOn = true ];then
@@ -1324,6 +1324,8 @@ generarDHParam() {
 			apacheConfFile="/etc/$webServerName/apache2.conf"
 		elif [ $rhelOS = true ];then
 			apacheConfFile="/etc/$webServerName/conf/httpd.conf"
+		else
+			comprobarError 1 403
 		fi
 		echo -en "\n# Set Stronger Diffie-Hellman key exchange\n" >> $apacheConfFile
 		echo -en "SSLOpenSSLConfCmd DHParameters \"$dhParamFile\"\n" >> $apacheConfFile