mirror of https://github.com/zulip/zulip.git
update-deployment: Compute ZULIP_COM setting.
This commit is contained in:
parent
7348841e65
commit
82f9f8f941
|
@ -1,10 +1,17 @@
|
|||
#!/usr/bin/env python
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import six.moves.configparser
|
||||
import sys
|
||||
import subprocess
|
||||
import logging
|
||||
|
||||
config_file = six.moves.configparser.RawConfigParser()
|
||||
config_file.read("/etc/zulip/zulip.conf")
|
||||
|
||||
ZULIP_COM = config_file.get('machine', 'deploy_type') in ['zulip.com-prod',
|
||||
'zulip.com-staging']
|
||||
|
||||
os.environ["PYTHONUNBUFFERED"] = "y"
|
||||
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
|
Loading…
Reference in New Issue