mirror of
https://github.com/nanomq/nanomq.git
synced 2025-06-22 01:57:27 +00:00
fix(docker): fix can not start container
Signed-off-by: Rory Z <16801068+Rory-Z@users.noreply.github.com>
This commit is contained in:
@ -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 "$@"
|
||||
|
Reference in New Issue
Block a user