Browse Source

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

pull/9401/head
jiangweidong 2 years ago committed by GitHub
parent
commit
7a5195e91e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      apps/common/management/commands/services/services/celery_base.py

1
apps/common/management/commands/services/services/celery_base.py

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

Loading…
Cancel
Save