Skip to content
Snippets Groups Projects
startup-fts-server.sh 491 B
Newer Older
#!/bin/bash
set -ex

# wait for MySQL readiness
/scripts/wait-for-it.sh -h ${FTS_MYSQL_HOST} -p 3306 -t 3600

cp /certs/hostcert.pem /etc/grid-security/hostcert.pem
cp /certs/hostkey.pem /etc/grid-security/hostkey.pem
cp /scripts/etc/hosts /etc/hosts

if ! rpm -qa | grep x509-scitokens-issuer-client-0.7.0-1.hcc.el7.x86_64; \
   then yum localinstall -y /scripts/x509-scitokens-issuer-client-0.7.0-1.hcc.el7.x86_64.rpm; \
fi

/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf