9a50cad7d19278c83614c84cd16f59c4750556a8
chmalee
  Tue Oct 29 11:12:28 2019 -0700
Adding knownAttrs to the list of default hg38 tables on gbib, refs #24398

diff --git src/browserbox/root/updateBrowser.sh src/browserbox/root/updateBrowser.sh
index 59d8e7e..a513785 100755
--- src/browserbox/root/updateBrowser.sh
+++ src/browserbox/root/updateBrowser.sh
@@ -370,30 +370,34 @@
 if [ ! -d /data/cramCache ]; then
     mkdir -p /data/cramCache/pending /data/cramCache/error
     chown -R www-data:www-data /data/cramCache
 fi
 # -- end July 2016
 
 # July 2016: genbank tables are now in hgFixed. By touching a few files, we make sure that at least refseqStatus 
 # is rsync'ed later, otherwise gbib is really slow, refs #17842
 touch /data/mysql/hgFixed/refSeqStatus.MYI /data/mysql/hgFixed/refSeqStatus.MYD /data/mysql/hgFixed/refSeqStatus.frm 
 touch /data/mysql/hgFixed/refLink.MYI /data/mysql/hgFixed/refLink.MYD /data/mysql/hgFixed/refLink.frm 
 
 # Jan 2017: hgVai does not work if /data/mysql/hg19/wgEncodeRegTfbsClusteredInputsV3 is not present, so force this 
 # table into the rsync, refs #18778
 touch /data/mysql/hg19/wgEncodeRegTfbsClusteredInputsV3.{frm,MYI,MYD}
 
+# Oct 2019: hg38 does not work if /data/mysql/hg38/knownAttrs is not present, so force this
+# table into the rsync, refs #24398
+touch /data/mysql/hg38/knownAttrs.{frm,MYI,MYD}
+
 # Jun 2017: An Ubuntu security update in early 2017 deactivated LOAD DATA in Mysql
 # so we are switching it back on
 if grep -q secure-file-priv /etc/mysql/my.cnf; then
     true
 else
     echo Allowing LOAD DATA in MySQL and restart MySQL
     sed -i '/\[mysqld\]/a secure-file-priv = ""' /etc/mysql/my.cnf
     service mysql restart
 fi
 
 # we can now remove the old tables
 rm -f /data/mysql/hg19/refSeqStatus*
 
 if [ "$1" != "hgwdev" ] ; then
   echo updating MYSQL files - browser will not work during the MYSQL update