winlin

check lsb_realease for install

@@ -20,6 +20,11 @@ product_dir=$work_dir @@ -20,6 +20,11 @@ product_dir=$work_dir
20 log="${work_dir}/logs/package.`date +%s`.log" && . ${product_dir}/scripts/_log.sh && check_log 20 log="${work_dir}/logs/package.`date +%s`.log" && . ${product_dir}/scripts/_log.sh && check_log
21 ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi 21 ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi
22 22
  23 +# check lsb_release
  24 +ok_msg "check tools"
  25 +lsb_release -v >/dev/null 2>&1; ret=$?
  26 +if [[ $ret -ne 0 ]]; then failed_msg "abort, please install lsb_release"; exit $ret; fi
  27 +
23 # user must stop service first. 28 # user must stop service first.
24 ok_msg "check previous install" 29 ok_msg "check previous install"
25 if [[ -f /etc/init.d/srs ]]; then 30 if [[ -f /etc/init.d/srs ]]; then