From b7592e0d8c244124730dcc26749c4054db3418d4 Mon Sep 17 00:00:00 2001 From: xxxxxliil Date: Thu, 3 Jun 2021 16:09:47 +0800 Subject: [PATCH] chore: make test_db quiet --- rootfs/usr/local/bin/startup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/usr/local/bin/startup b/rootfs/usr/local/bin/startup index f12fad7..35de593 100644 --- a/rootfs/usr/local/bin/startup +++ b/rootfs/usr/local/bin/startup @@ -74,7 +74,7 @@ if [ "${DB_WAIT}" = 'true' ]; then --password ${DB_PASS} } echo "[INFO] Waiting for the database live..." - until test_db; do + until test_db >/dev/null 2>&1; do if [ "${test_count}" = 40 ]; then echo "[ERROR] The database not live!" >&2 exit 75