Initial Commit

This commit is contained in:
dakkidaze 2016-11-19 18:38:49 +08:00
parent f7de02ca19
commit e17fe55e40
2 changed files with 53 additions and 0 deletions

View File

@ -1,2 +1,9 @@
# one-key-kms
在Linux上一键搭建KMS服务器
特别感谢KMS服务器程序的开发者Wind4
KMS服务器软件vlmcsd Github主页https://github.com/Wind4/vlmcsd
`现在还处于测试阶段,您的服务器出现任何问题本人与服务器程序作者均不承担任何责任。`

46
one-key-kms.sh Normal file
View File

@ -0,0 +1,46 @@
#! /bin/bash
#One-key-kms script by Dakkidaze <gioku@docomo.net.cn>
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 <gioku@docomo.net.cn>"
}
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 <gioku@docomo.net.cn>"
echo "READY TO START?"
read -p "y/n:" choice
case $choice in
"y")
start
;;
"n")
exit 0;
;;
*)
echo "Please enter y or n!"
;;
esac