From 65b49bfbf65ccbd1575a59f72210eec019134de7 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Mon, 2 Dec 2013 16:16:17 +0100 Subject: [PATCH] Allow setting release log file via env --- dev-tools/build_release.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-tools/build_release.py b/dev-tools/build_release.py index 903ea07f810..027ce23eafc 100644 --- a/dev-tools/build_release.py +++ b/dev-tools/build_release.py @@ -53,8 +53,9 @@ Once it's done it will print all the remaining steps. - RPM for RPM building ($ apt-get install rpm) - 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): log_plain('\n%s' % msg) @@ -72,7 +73,6 @@ def run(command, quiet=False): print(msg) raise RuntimeError(msg) -env = os.environ try: JAVA_HOME = env['JAVA_HOME'] except KeyError: