代码拉取完成,页面将自动刷新
原文:
#check_timezone
sync_zone(){
zone=`date -R | grep '+800'|wc -l`
test $zone -eq "1" && echo "Time Zone: Shanghai " || rm -rf /etc/localtime && ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
}
sync_zone
修改:
zone=`date -R | grep '+0800'|wc -l`
test $zone -eq "1" && echo "Time Zone: Shanghai " && rm -rf /etc/localtime && ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
不知道对不对?