From 9eabc6a45231c8fbb3934ea0e4c0036f4ddbfd8e Mon Sep 17 00:00:00 2001 From: LINxiansheng Date: Wed, 13 Apr 2022 14:34:45 +0800 Subject: [PATCH] Fix a bug about dockerfile --- tools/docker/standalone/boot/_boot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/docker/standalone/boot/_boot b/tools/docker/standalone/boot/_boot index de321a3ce8..3402c3ed93 100755 --- a/tools/docker/standalone/boot/_boot +++ b/tools/docker/standalone/boot/_boot @@ -8,7 +8,7 @@ STAMP="$(date +%s)" [[ -f boot.yaml ]] && echo "find boot.yaml, skip configuring..." || { echo "generate boot.yaml ..." TMPFILE="boot.${STAMP}.yaml" - if ${MINI_MODE} + if [[ $MINI_MODE == 1 ]] then cp -f boot-mini-tmp.yaml $TMPFILE else @@ -22,7 +22,7 @@ STAMP="$(date +%s)" [ "${OB_REDO_DIR}" ] && echo " redo_dir: ${OB_REDO_DIR}" >> $TMPFILE echo "create boot dirs and deploy ob cluster ..." mkdir -p $OB_HOME_PATH - if ${MINI_MODE} + if [[ $MINI_MODE == 1 ]] then obd cluster deploy "${OB_CLUSTER_NAME}" -c $TMPFILE && obd cluster tenant create "${OB_CLUSTER_NAME}" -n ${OB_TENANT_NAME} && obd cluster start "${OB_CLUSTER_NAME}" && obclient -h127.1 -uroot@${OB_TENANT_NAME} -A -P${OB_MYSQL_PORT} < init_tenant_user.sql && mv -f $TMPFILE boot.yaml else @@ -33,4 +33,4 @@ STAMP="$(date +%s)" [[ -f boot.yaml ]] && { echo "start ob cluster ..." obd cluster start $OB_CLUSTER_NAME -} && echo "boot success!" && exec /sbin/init \ No newline at end of file +} && echo "boot success!" && exec /sbin/init