diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-03-08 02:41:21 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-03-08 02:41:21 +0100 |
commit | 680f1d09019d8117f1b2c56c7323b5f45dd7b442 (patch) | |
tree | b2d39cbbf13718a1b51ffeb97467338712ae160e /config/generate-config | |
parent | 1568e9eb772f240dde85824cfd189d27426bceec (diff) | |
download | deployment-680f1d09019d8117f1b2c56c7323b5f45dd7b442.tar.gz deployment-680f1d09019d8117f1b2c56c7323b5f45dd7b442.tar.bz2 deployment-680f1d09019d8117f1b2c56c7323b5f45dd7b442.zip |
fix --standalone flag
Diffstat (limited to 'config/generate-config')
-rwxr-xr-x | config/generate-config | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/generate-config b/config/generate-config index 0448910..55cceae 100755 --- a/config/generate-config +++ b/config/generate-config @@ -205,6 +205,14 @@ def main(currency, envname, outdir, exchange_pub, standalone): print("envname {} not supported unless in standalone mode".format(envname)) return + # We have the --standalone option as 0/1 instead of as a flag, + # since this way it's easier to read it from an environment variable + # in shell scripts. + if standalone == "1": + standalone = True + else: + standalone = False + config(currency, envname, exchange_pub, standalone == "1") merchant_wireformats = [ |