centos Kangle一键安装脚本

2017-07-16 21:23:28 8936

#!/bin/bash

links="http://www.landui.com"

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"


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: