宵云:centos Kangle一键安装脚本

宵云:centos Kangle一键安装脚本

#!/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"

正在寻找定制型方案?

无论您是小企业还是大企业,我们的技术人员都可以为您提供市场上最好的定制解决方案。

与我们联系