浏览代码

Fixed script bug

Added missing -y flag for apt-get command to make the script fully automated.
Josh Yu 6 年之前
父节点
当前提交
57ba799816
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kms.sh

+ 1 - 1
kms.sh

@@ -147,7 +147,7 @@ install_main() {
         fi
     elif [[ x"${release}" == x"debian" || x"${release}" == x"ubuntu" ]]; then
         apt-get -y update
-        apt-get install gcc git make libnss3 curl libcurl3-nss
+        apt-get install -y 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