欢迎访问蓝队云一站式平台!

关注蓝队云

您的位置:蓝队网络首页 > 云服务器 > 服务器教程 > 正文

centos Kangle一键安装脚本

发布时间:2017-07-16     浏览量:261人

#!/bin/bash

links="http://kangle.pw"

files="/root/s-hell"

file2="/root/s-hell/log"

file3="/root/hl-tmp"

echo "Mkdiring>>>>>>>>>>"

cd

echo "Mkdiring For Config A Folde >>>>>>>>>>"

rm -rf hls*

echo "Mkdiring For Config B Folde >>>>>>>>>>"

echo -e "nameserver 114.114.114.114\nnameserver 8.8.8.8" >> /etc/resolv.conf

echo "Mkdiring For New file >>>>>>>>>>"

if [ ! -d "$files" -a "$file2" -a "$file3" ];

echo "Mkdir Is OK!"

then

mkdir $files;

chmod 755 $files;

mkdir $file2;

chmod 755 $file2;

mkdir $file3;

chmod 755 $file3;

fi

echo "Error>>>>>>>>>>"

echo "File Exists"

cd $file3

echo "Download Config File >>>>>>>>>>"

rm -rf $files/config

wget -q $links/config -O $files/config

wget -q $links/main.sh -O main.sh

cp main.sh /usr/bin/hls

chmod 777 /usr/bin/hls

sh main.sh

echo "it is ok"


蓝队云
蓝队云