diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index ddfb7d2..371c1f5 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -214,13 +214,6 @@ _main() { fi fi - confHash=$(md5sum /etc/manticoresearch/manticore.conf | awk '{print $1}') - expectedConfHash=$(cat /manticore.conf.md5) - - if [[ "$confHash" == "$expectedConfHash" ]]; then - export searchd_listen='9306:mysql41|/var/run/mysqld/mysqld.sock:mysql41|9308:http|$ip:9312|$ip:9315-9325:replication' - fi - if ! _searchd_want_help "@"; then docker_setup_env "$@" fi diff --git a/manticore.conf.sh b/manticore.conf.sh index a8132d4..a22dea5 100644 --- a/manticore.conf.sh +++ b/manticore.conf.sh @@ -10,6 +10,12 @@ else conf=$(bash /etc/manticoresearch/manticore.conf) fi +confHash=$(md5sum /etc/manticoresearch/manticore.conf | awk '{print $1}') +expectedConfHash=$(cat /manticore.conf.md5) + +if [[ "$confHash" == "$expectedConfHash" ]]; then + export searchd_listen='9306:mysql41|/var/run/mysqld/mysqld.sock:mysql41|9308:http|$ip:9312|$ip:9315-9325:replication' +fi while IFS='=' read -r envVariable value; do if [[ "${envVariable}" == searchd_* ]]; then