diff --git a/one-key-kms-centos.sh b/one-key-kms-centos.sh new file mode 100644 index 0000000..d5c20d8 --- /dev/null +++ b/one-key-kms-centos.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(){ +yum 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 diff --git a/one-key-kms.sh b/one-key-kms-debian.sh similarity index 100% rename from one-key-kms.sh rename to one-key-kms-debian.sh