Skip to content

Commit

Permalink
mac优化
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Nov 8, 2023
1 parent fbe211b commit 7d4c4a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions class/core/cert_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ def saveConfig(self):
return True

def createCertCron(self):

if mw.isAppleSystem():
print('在Macos上不支持创建证书自动续签任务!')
return ''

# 创建证书自动续签任务
try:
import crontab_api
Expand Down
4 changes: 4 additions & 0 deletions cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d4c4a9

Please sign in to comment.