From cdd2eb0a12450dffbba00d17c9cd2d6984bc3bf9 Mon Sep 17 00:00:00 2001 From: chaogefeng <673120261@163.com> Date: Fri, 13 Dec 2019 17:33:17 +0800 Subject: [PATCH] Automated Installation Enhance close #37 --- bin/checkEnv.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/checkEnv.sh b/bin/checkEnv.sh index c377c05ea2..dffcb77189 100644 --- a/bin/checkEnv.sh +++ b/bin/checkEnv.sh @@ -29,14 +29,18 @@ check_cmd() { need_cmd() { if ! check_cmd "$1"; then - err "need '$1' (command not found)" + err "need '$1' (your linux command not found)" fi } -echo "<-----start to check used cmd---->" +echo "<-----start to check linux cmd:yum java mysql unzip expect telnet sed tar---->" need_cmd yum need_cmd java need_cmd mysql need_cmd unzip need_cmd expect need_cmd telnet -echo "<-----end to check used cmd------>" +need_cmd sed +need_cmd tar +need_cmd source +need_cmd hostname +echo "<-----end to check linux cmd:yum java mysql unzip expect telnet sed tar------>"