mirror of https://github.com/wulabing/Xray_onekey
parent
bda2362576
commit
d90a7d8ed5
17
install.sh
17
install.sh
|
@ -96,6 +96,21 @@ time_modify(){
|
||||||
}
|
}
|
||||||
dependency_install(){
|
dependency_install(){
|
||||||
${INS} install wget curl -y
|
${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
|
${INS} install net-tools -y
|
||||||
if [[ $? -eq 0 ]];then
|
if [[ $? -eq 0 ]];then
|
||||||
echo -e "${OK} ${GreenBG} net-tools 安装完成 ${Font}"
|
echo -e "${OK} ${GreenBG} net-tools 安装完成 ${Font}"
|
||||||
|
@ -382,4 +397,4 @@ main(){
|
||||||
start_process_systemd
|
start_process_systemd
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
Loading…
Reference in New Issue