diff --git a/class/core/cert_api.py b/class/core/cert_api.py index 45912048b..831e82363 100644 --- a/class/core/cert_api.py +++ b/class/core/cert_api.py @@ -123,6 +123,11 @@ class cert_api: return True def createCertCron(self): + + if mw.isAppleSystem(): + print('在Macos上不支持创建证书自动续签任务!') + return '' + # 创建证书自动续签任务 try: import crontab_api diff --git a/cli.sh b/cli.sh index d2652a3ff..14204b1d8 100755 --- a/cli.sh +++ b/cli.sh @@ -46,6 +46,10 @@ mw_start(){ mw_start_debug(){ + if [ ! -f $DIR/logs/task.log ];then + echo '' > $DIR/logs/task.log + fi + python3 task.py >> $DIR/logs/task.log 2>&1 & port=7200 if [ -f /www/server/mdserver-web/data/port.pl ];then