fix(docker): fix can not start container

Signed-off-by: Rory Z <16801068+Rory-Z@users.noreply.github.com>
This commit is contained in:
Rory Z 2025-03-05 11:07:12 +08:00 committed by Jaylin
parent 1c9d8e6cbd
commit 1d48b8a7b8

View File

@ -11,10 +11,13 @@ _main() {
rm -f /tmp/nanomq/nanomq.pid
fi
if [ "${1#-}" != "$1" ]; then
if [ "$#" -eq 0 ];then
set -- nanomq start
elif [ "${1#-}" != "$1" ]; then
set -- nanomq start "$@"
fi
exec "$@"
exec "$@"
}
_main "$@"