Allow setting release log file via env
This commit is contained in:
parent
7d993fd917
commit
65b49bfbf6
|
@ -53,8 +53,9 @@ Once it's done it will print all the remaining steps.
|
||||||
- RPM for RPM building ($ apt-get install rpm)
|
- RPM for RPM building ($ apt-get install rpm)
|
||||||
- S3 keys exported via ENV Variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
|
- S3 keys exported via ENV Variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
|
||||||
"""
|
"""
|
||||||
|
env = os.environ
|
||||||
|
|
||||||
LOG = '/tmp/elasticsearch_release.log'
|
LOG = env.get('ES_RELEASE_LOG', '/tmp/elasticsearch_release.log')
|
||||||
|
|
||||||
def log(msg):
|
def log(msg):
|
||||||
log_plain('\n%s' % msg)
|
log_plain('\n%s' % msg)
|
||||||
|
@ -72,7 +73,6 @@ def run(command, quiet=False):
|
||||||
print(msg)
|
print(msg)
|
||||||
raise RuntimeError(msg)
|
raise RuntimeError(msg)
|
||||||
|
|
||||||
env = os.environ
|
|
||||||
try:
|
try:
|
||||||
JAVA_HOME = env['JAVA_HOME']
|
JAVA_HOME = env['JAVA_HOME']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Loading…
Reference in New Issue