Update task.py

This commit is contained in:
midoks 2021-02-02 01:31:37 +08:00
parent 884c747c83
commit aa16b1ad8a
1 changed files with 3 additions and 0 deletions

View File

@ -396,6 +396,9 @@ def startPHPVersion(version):
os.remove(fpm)
return False
if not os.path.exists(fpm):
return True
# 尝试重载服务
os.system(fpm + ' reload')
if checkPHPVersion(version):