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