From 5c3f71c2e4b3bbbf8c613036aa3d37105a1e270d Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 7 Jun 2024 20:06:20 +0800 Subject: [PATCH] Update task.py --- task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task.py b/task.py index 42546897af..71691f0887 100755 --- a/task.py +++ b/task.py @@ -77,7 +77,7 @@ def openresty_cmd(method = 'reload'): return True sys_initd = '/etc/init.d/openresty' - if os.path.exists(install_initd): + if os.path.exists(sys_initd): os.system(sys_initd + ' ' + method) return True