Newer
Older
#!/bin/bash
set -ex
# wait for MySQL readiness
/scripts/wait-for-it.sh -h ftsdb -p 3306 -t 3600
# initialise / upgrade the database
#/scripts/initialize-mysql.sh
#mysql -u root -pfts -h ftsdb -Bse "GRANT ALL ON fts.* TO 'fts'@'%' IDENTIFIED BY 'fts';\
# FLUSH PRIVILEGES;\
# GRANT SUPER ON *.* to 'fts'@'%' IDENTIFIED BY 'fts';\
# FLUSH PRIVILEGES;"
#mysql -u root -pfts -h ftsdb fts < /usr/share/fts-mysql/fts-schema-6.0.0.sql
# startup the FTS services
#/usr/sbin/fts_server # main FTS server daemonizes
#/usr/sbin/httpd -DFOREGROUND # FTS REST frontend & FTSMON
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf