From 588de3e7b4af8422499dfbf26f4a55942e9fb60f Mon Sep 17 00:00:00 2001 From: winlin Date: Tue, 13 Sep 2016 15:53:34 +0800 Subject: [PATCH] check lsb_realease for install --- trunk/scripts/install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trunk/scripts/install.sh b/trunk/scripts/install.sh index 0c944e86a..faa35bffc 100755 --- a/trunk/scripts/install.sh +++ b/trunk/scripts/install.sh @@ -20,6 +20,11 @@ product_dir=$work_dir log="${work_dir}/logs/package.`date +%s`.log" && . ${product_dir}/scripts/_log.sh && check_log ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi +# check lsb_release +ok_msg "check tools" +lsb_release -v >/dev/null 2>&1; ret=$? +if [[ $ret -ne 0 ]]; then failed_msg "abort, please install lsb_release"; exit $ret; fi + # user must stop service first. ok_msg "check previous install" if [[ -f /etc/init.d/srs ]]; then