From bc640ad8884ab0b7982391eacf47bba169d12386 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 12 Aug 2022 12:07:08 +0800 Subject: [PATCH] Update index.py --- plugins/openresty/index.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index 8fe7e0386..489a2571c 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -296,6 +296,10 @@ def errorLogPath(): return getServerDir() + '/nginx/logs/error.log' +def installPreInspection(): + return 'ok' + + if __name__ == "__main__": func = sys.argv[1] if func == 'status': @@ -314,6 +318,8 @@ if __name__ == "__main__": print(initdInstall()) elif func == 'initd_uninstall': print(initdUinstall()) + elif func == 'install_pre_inspection': + print(installPreInspection()) elif func == 'conf': print(getConf()) elif func == 'get_os':