From d9e01c51a525adf4f2393a95f87604e3b6e79ad2 Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期二, 19 十一月 2019 15:57:19 +0800
Subject: [PATCH] fix all

---
 extend/sys/system.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/extend/sys/system.go b/extend/sys/system.go
index b1bb46d..647917d 100644
--- a/extend/sys/system.go
+++ b/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, " ")

--
Gitblit v1.8.0