Explorar el Código

* Arreglar errores

Guzmán Castanedo Villalba hace 5 años
padre
commit
8714401c11
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      check-virtualhosts

+ 1 - 1
check-virtualhosts

@@ -81,7 +81,7 @@ hostnamesFail=""
 
 
 echo -en $(date +'[%Y-%m-%d] %H:%M:%S')" Comprobando Virtual Hosts...\n"
 echo -en $(date +'[%Y-%m-%d] %H:%M:%S')" Comprobando Virtual Hosts...\n"
 getVirtualHosts "/etc/nginx/sites-enabled/"
 getVirtualHosts "/etc/nginx/sites-enabled/"
-for hostname in $hostnames;do
+for hostname in ${hostnames[@]};do
 	checkHostname $hostname
 	checkHostname $hostname
 	if [ $? -ne 0 ];then
 	if [ $? -ne 0 ];then
 		# Este dominio no está disponible
 		# Este dominio no está disponible