#!/bin/bash
CONFIG_PATH=/opt/emqx/etc/plugins/emqx_exhook.conf
# Set emqx_exhook.conf configs
sed -i 's/${SERVER_HOSTNAME}/'$SERVER_HOSTNAME'/g' $CONFIG_PATH
echo "Starting server.."
sh /opt/emqx/bin/emqx foreground