Skip to content
This repository was archived by the owner on Nov 16, 2018. It is now read-only.

Commit 65b49bf

Browse files
committed
Allow setting release log file via env
1 parent 7d993fd commit 65b49bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev-tools/build_release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@
5353
- RPM for RPM building ($ apt-get install rpm)
5454
- S3 keys exported via ENV Variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
5555
"""
56+
env = os.environ
5657

57-
LOG = '/tmp/elasticsearch_release.log'
58+
LOG = env.get('ES_RELEASE_LOG', '/tmp/elasticsearch_release.log')
5859

5960
def log(msg):
6061
log_plain('\n%s' % msg)
@@ -72,7 +73,6 @@ def run(command, quiet=False):
7273
print(msg)
7374
raise RuntimeError(msg)
7475

75-
env = os.environ
7676
try:
7777
JAVA_HOME = env['JAVA_HOME']
7878
except KeyError:

0 commit comments

Comments
 (0)