Fix openmetadata-server-start.sh can't start in daemon (#20405)

This commit is contained in:
Juntao Zhang 2025-03-27 14:14:46 +08:00 committed by GitHub
parent bf9da10af5
commit 7a860e51f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,19 +50,24 @@ fi
COMMAND=$1
case $COMMAND in
-name)
DAEMON_NAME=$2
CONSOLE_OUTPUT_FILE=$LOG_DIR/$DAEMON_NAME.out
shift 2
;;
-daemon)
DAEMON_MODE=true
shift
;;
*)
;;
esac
while [ "$COMMAND" != "" ]; do
case $COMMAND in
-name)
DAEMON_NAME=$2
shift 2
;;
-daemon)
DAEMON_NAME=OpenMetadataServer
DAEMON_MODE=true
shift
;;
*)
break
;;
esac
COMMAND=$1
done
CONSOLE_OUTPUT_FILE=$LOG_DIR/$DAEMON_NAME.out
# Which java to use
if [ -z "$JAVA_HOME" ]; then