entgra-emqx-docker/entrypoint.sh
2023-04-21 22:40:07 +05:30

12 lines
338 B
Bash

#!/bin/bash
echo "copying static content"
STATIC_CONFIG_PATH=/opt/emqx/lib/emqx_dashboard-4.4.10/priv/www/static/
cp /opt/emqx/static/css/* $STATIC_CONFIG_PATH/css/
cp /opt/emqx/static/img/* $STATIC_CONFIG_PATH/img/
cp /opt/emqx/configs/emqx_exhook.conf /opt/emqx/etc/plugins/
echo "Starting server.."
sh /opt/emqx/bin/emqx foreground