e4e70ace5f9974e20048210f0c1f67ee7e57a6ee
hiram
  Mon Dec 5 23:25:51 2022 -0800
eliminate the not needed message refs #28331

diff --git src/hg/utils/otto/ncbiRefSeq/runUcscDb.sh src/hg/utils/otto/ncbiRefSeq/runUcscDb.sh
index b3a96f2..085937a 100755
--- src/hg/utils/otto/ncbiRefSeq/runUcscDb.sh
+++ src/hg/utils/otto/ncbiRefSeq/runUcscDb.sh
@@ -1,63 +1,63 @@
 #!/bin/bash
 
 set -beEu -o pipefail
 
 export TOP="/hive/data/outside/otto/ncbiRefSeq"
 cd "${TOP}"
 
 export db="$1"
 export Db="$2"
 export sumFile="$3"
 export asmId="$4"
 export wrkDir="$5"
 export gffFile="$6"
 export msgFile="/tmp/refSeqUpdateNotice.msg.txt"
 
 function prevCompleted() {
   printf "To: hclawson@ucsc.edu,lrnassar@ucsc.edu\n" > ${msgFile}
   printf "From: hiram@soe.ucsc.edu\n" >> ${msgFile}
   printf "Subject: $db ncbiRefSeq is not needed\n" >> ${msgFile}
   printf "\n" >> ${msgFile}
   printf "$db ncbiRefSeq is not needed\n" >> ${msgFile}
   cat $msgFile | /usr/sbin/sendmail -t -oi
 }
 
 function inProgress() {
   printf "To: hclawson@ucsc.edu,lrnassar@ucsc.edu\n" > ${msgFile}
   printf "From: hiram@soe.ucsc.edu\n" >> ${msgFile}
   printf "Subject: ALERT: $db ncbiRefSeq update in progress\n" >> ${msgFile}
   printf "\n" >> ${msgFile}
   printf "ALERT: $db ncbiRefSeq update in progress\n" >> ${msgFile}
   cat $msgFile | /usr/sbin/sendmail -t -oi
 }
 
 srcSum=`md5sum "${gffFile}" | cut -d' ' -f1`
 prevSum=`cat ${sumFile}`
 
 if [ "${srcSum}" != "${prevSum}" ]; then
   inProgress $db
   if [ ! -d "${wrkDir}" ]; then
      mkdir "${wrkDir}"
      cd "${wrkDir}"
      printf "#!/bin/bash
 
 # otto script created by:
 #    /hive/data/outside/ncbi/genomes/ncbiRefSeq/ottoNcbiRefSeq.sh
 
 set -beEu -o pipefail
 cd $wrkDir
 ~/kent/src/hg/utils/automation/doNcbiRefSeq.pl -buildDir=\`pwd\` \\
       -bigClusterHub=ku -dbHost=hgwdev \\
       -fileServer=hgwdev -smallClusterHub=hgwdev -workhorse=hgwdev \\
       ${asmId} ${db}
 " > run.sh
      chmod +x run.sh
      time (./run.sh) > do.log 2>&1
      cd "${TOP}"
      printf "%s\n" "${srcSum}" > "${sumFile}"
      /hive/data/outside/ncbi/genomes/ncbiRefSeq/archiveOne.sh "${wrkDir}"
   fi
-else
-  prevCompleted $db
+# else
+#   prevCompleted $db
 fi