diff --git a/task.py b/task.py index 66cec577e..8458a753c 100755 --- a/task.py +++ b/task.py @@ -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):