Hi!,
For me it worked like this..
#!/bin/bash
nc -z -w 3 supportcenter.checkpoint.com 443
if [[ $? -eq 0 ]]; then
l=$(grep "HashKey" healthcheck.tmp | head -n1 | awk '{print $3}' | sed 's/href="//' | sed 's/">//')
s=$(echo "$l" | awk -F/ '{print $6}')
curl_cli -o healthcheck.sh -f -s -k "$l"
if [[ $(md5sum healthcheck.sh | cut -d " " -f1) == $s ]]; then
chmod +x healthcheck.sh
ls -la healthcheck.sh
else
echo "MD5 hash mismatch of Gaia healthcheck script. Aborting."
rm healthcheck.sh
fi
rm -f healthcheck.tmp
else
echo "No HTTPS access to supportcenter.checkpoint.com for script download -> see sk83520"
fi