Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
elunez committed Aug 2, 2022
1 parent e5040f7 commit f8246ed
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bt_7.7_happy/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,15 @@ def startTask():
def siteEdate():
global oldEdate
try:
oldEdate = ReadFile('/www/server/panel/data/edate.pl')
if not oldEdate:
oldEdate = ReadFile('/www/server/panel/data/edate.pl')
if not oldEdate:
oldEdate = '0000-00-00'
mEdate = time.strftime('%Y-%m-%d', time.localtime())
if oldEdate == mEdate:
return False
os.system(get_python_bin() +
" /www/server/panel/script/site_task.py > /dev/null")
oldEdate = mEdate
os.system("nohup " + get_python_bin() + " /www/server/panel/script/site_task.py > /dev/null 2>&1 &")
except Exception as ex:
logging.info(ex)
pass
Expand Down

0 comments on commit f8246ed

Please sign in to comment.