Update install.sh

完善: 添加 cron 依赖安装
pull/41/head
wulabing 2018-01-27 11:12:06 +08:00 committed by GitHub
parent bda2362576
commit d90a7d8ed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 1 deletions

View File

@ -96,6 +96,21 @@ time_modify(){
}
dependency_install(){
${INS} install wget curl -y
if [[ "${ID}" == "centos" ]];then
yum -y install crontabs
else
apt-get install cron
fi
if [[ $? -eq 0 ]];then
echo -e "${OK} ${GreenBG} crontab 安装完成 ${Font}"
sleep 1
else
echo -e "${Error} ${RedBG} crontab 安装失败 ${Font}"
exit 1
fi
${INS} install net-tools -y
if [[ $? -eq 0 ]];then
echo -e "${OK} ${GreenBG} net-tools 安装完成 ${Font}"