Fixed script bug

Added missing -y flag for apt-get command to make the script fully automated.
This commit is contained in:
Josh Yu 2018-12-24 22:43:45 -08:00 committed by GitHub
parent 354ebe77db
commit 57ba799816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
kms.sh
View File

@ -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