From cc2c69a0746e7a95dbf7bc403bce62c892ca01c8 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Sat, 2 Jun 2018 15:16:22 +0900 Subject: [PATCH] Update comments Signed-off-by: Teddysun --- kms.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kms.sh b/kms.sh index cb32eb1..3e9bbea 100644 --- a/kms.sh +++ b/kms.sh @@ -140,14 +140,14 @@ install_main() { char=$(get_char) if [[ x"${release}" == x"centos" ]]; then - yum -y install gcc git make + yum -y install gcc git make nss curl libcurl if ! wget --no-check-certificate -O /etc/init.d/kms https://raw.githubusercontent.com/teddysun/across/master/kms; then echo -e "[${red}Error:${plain}] Failed to download KMS Server script." exit 1 fi elif [[ x"${release}" == x"debian" || x"${release}" == x"ubuntu" ]]; then apt-get -y update - apt-get install gcc git make + apt-get install gcc git make libnss3 curl libcurl3-nss if ! wget --no-check-certificate -O /etc/init.d/kms https://raw.githubusercontent.com/teddysun/across/master/kms-debian; then echo -e "[${red}Error:${plain}] Failed to download KMS Server script." exit 1 @@ -159,7 +159,7 @@ install_main() { cd ${cur_dir} git clone https://github.com/teddysun/vlmcsd.git > /dev/null 2>&1 - cd vlmcsd + [ -d vlmcsd ] && cd vlmcsd || echo -e "[${red}Error:${plain}] Failed to git clone vlmcsd." make if [ $? -ne 0 ]; then echo -e "${red}Error:${plain} Install KMS Server failed, please check it and try again."