diff --git a/README.md b/README.md index 0752925..18a95fe 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,9 @@ # one-key-kms 在Linux上一键搭建KMS服务器 + +特别感谢KMS服务器程序的开发者Wind4 + + +KMS服务器软件vlmcsd Github主页:https://github.com/Wind4/vlmcsd + +`现在还处于测试阶段,您的服务器出现任何问题本人与服务器程序作者均不承担任何责任。` diff --git a/one-key-kms.sh b/one-key-kms.sh new file mode 100644 index 0000000..e52415f --- /dev/null +++ b/one-key-kms.sh @@ -0,0 +1,46 @@ +#! /bin/bash + +#One-key-kms script by Dakkidaze + +PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin +export PATH +clear +start(){ +apt-get install gcc git make -y +mkdir /usr/local/kms +cd /usr/local/kms +git clone https://github.com/Wind4/vlmcsd.git +cd vlmcsd +make +cd bin +mv vlmcsd /usr/local/kms/kms +cd /usr/local/kms/ +rm -rf ./vlmcsd/ +mv kms vlmcsd +clear +echo "Succeeded." +echo "The executable file lies in /usr/local/kms/" +echo "Remember that the server is not running right now." +echo "Please use -h to find possible usage for the executable or visit vlmcsd on Github." +echo "https://github.com/Wind4/vlmcsd" +echo "Addtionally, you may want to get a script to manage it." +echo "In this case, you may download a script at the one-key-kms repository." +echo "Thanks for your using!" +echo "Dakkidaze " +} +echo "This script will automatically download and compile KMS Server program for you." +echo "For more information, please visit https://github.com/Wind4/vlmcsd" +echo "Scrpit written by Dakkidaze " +echo "READY TO START?" +read -p "y/n:" choice +case $choice in + "y") + start + ;; + "n") + exit 0; + ;; + *) + echo "Please enter y or n!" + ;; +esac