444891eef90db1bdbff678ed49c19f3fd5c9f68d hiram Tue Sep 24 15:31:27 2024 -0700 do not try to send UCSC database browsers refs #34337 diff --git src/hg/makeDb/doc/asmHubs/sendToHgdownload.sh src/hg/makeDb/doc/asmHubs/sendToHgdownload.sh index 6ceac5c..9a53475 100755 --- src/hg/makeDb/doc/asmHubs/sendToHgdownload.sh +++ src/hg/makeDb/doc/asmHubs/sendToHgdownload.sh @@ -15,30 +15,34 @@ # 2024-02-06 hgdownload2.gi.ucsc.edu has address 128.114.198.53 # 2024-04-03 # host hgdownload1.gi.ucsc.edu # Host hgdownload1.gi.ucsc.edu not found: 3(NXDOMAIN) # host hgdownload1.soe.ucsc.edu # hgdownload1.soe.ucsc.edu has address 128.114.119.163 # host hgdownload2.gi.ucsc.edu # hgdownload2.gi.ucsc.edu has address 128.114.198.53 # host hgdownload2.soe.ucsc.edu # hgdownload2.soe.ucsc.edu is an alias for hgdownload2.gi.ucsc.edu. # hgdownload2.gi.ucsc.edu has address 128.114.198.53 ## verify no broken symlinks export srcDir="/hive/data/genomes/asmHubs/${dirPath}" +if [ ! -d "${srcDir}" ]; then + printf "# WARNING: no srcDir: '%s'\n" "${srcDir}" 1>&2 + exit 0 +fi badLinks=`(find "${srcDir}" -type l -lname \* \ | xargs --no-run-if-empty ls -lL > /dev/null || true) 2>&1 | wc -l` ### printf "# badLinks: %s\n" "${badLinks}" if [ "${badLinks}" -gt 0 ]; then printf "ERROR: missing symlink targets:\n" 1>&2 find "/hive/data/genomes/asmHubs/${dirPath}" -type l -lname \* \ | xargs --no-run-if-empty ls -lL > /dev/null exit 255 fi export DS=`date "+%F %T"` export destDir="/mirrordata/hubs/${dirPath}"