Commit cf147247 authored by Edita Kizinevic's avatar Edita Kizinevic
Browse files

Skip failover check when running as a pilot

parent 8dd848d2
......@@ -2,7 +2,7 @@
shopt -s expand_aliases
SCRIPT_REVISION="2020-02-24, Dave Dykstra and Edita Kizinevic"
SCRIPT_REVISION="2020-03-20, Dave Dykstra and Edita Kizinevic"
# Script does not use backupproxyurl if it is SAM test, but script uses backupproxyurl if it is pilot
includebackups=false
......@@ -99,19 +99,21 @@ current=`pwd`
echo "Current directory is: ${current}"
echo
# Get information from failover monitor
# Script checks failover if it is SAM test, but script does not check failover if it is pilot
failover=false
if [ ! -z "$site" ] ; then
site_summary_file=site_summary.txt
url=http://wlcg-squid-monitor.cern.ch/failover/failoverCMS/$site_summary_file
wget -q -O $site_summary_file $url
if [ -f "$site_summary_file" ] ; then
result="`grep -P "$site[, \t]" $site_summary_file`"
if [ ! -z "$result" ] ; then
failover=true
if ! $includebackups; then
if [ ! -z "$site" ] ; then
site_summary_file=site_summary.txt
url=http://wlcg-squid-monitor.cern.ch/failover/failoverCMS/$site_summary_file
wget -q -O $site_summary_file $url
if [ -f "$site_summary_file" ] ; then
result="`grep -P "$site[, \t]" $site_summary_file`"
if [ ! -z "$result" ] ; then
failover=true
fi
else
echo "$site_summary_file file is not retrieved from $url"
fi
else
echo "$site_summary_file file is not retrieved from $url"
fi
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment