mirror of
https://github.com/nanomq/nanomq.git
synced 2025-05-04 03:06:43 +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:
parent
1c9d8e6cbd
commit
1d48b8a7b8
@ -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 "$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user