fix: 解决部署后,Oracle无法执行自动化任务问题 (#9400)

pull/9401/head
jiangweidong 2023-02-02 10:33:07 +08:00 committed by GitHub
parent 3080771559
commit 7a5195e91e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ class CeleryBaseService(BaseService):
os.environ.setdefault('ANSIBLE_FORCE_COLOR', 'True')
os.environ.setdefault('ANSIBLE_CONFIG', ansible_config_path)
os.environ.setdefault('ANSIBLE_LIBRARY', ansible_modules_path)
os.environ.setdefault('PYTHONPATH', settings.APPS_DIR)
if os.getuid() == 0:
os.environ.setdefault('C_FORCE_ROOT', '1')