liuxiaolong
2019-12-12 f851fa7727e4b2384bd5c32793bd58c07e55a53d
extend/sys/system.go
@@ -119,7 +119,7 @@
func NTPConfig() (bool, string, string) {
   status, server, interval := false, "", ""
   cron, _ := execRootCommand("crontab -l | grep ntpdate | sed -z -r 's/([^0-9* ]+)(.+)//g'")
   cron, _ := execRootCommand("crontab -l | grep ntpdate | tr -d '\n'")
   if task := string(cron); task != "" {
      status = true
      slice := strings.Split(task, " ")