From a87c2e6e147ba8818f3fb33208c0cca09d2ebd3a Mon Sep 17 00:00:00 2001 From: jash Date: Mon, 8 Oct 2018 14:26:45 +0200 Subject: [PATCH] added lightning_implementation to installer config --- .../generators/app/templates/installer/config.sh | 1 + install/script/install_docker.sh | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/install/generator-cyphernode/generators/app/templates/installer/config.sh b/install/generator-cyphernode/generators/app/templates/installer/config.sh index 3079604..1500e96 100644 --- a/install/generator-cyphernode/generators/app/templates/installer/config.sh +++ b/install/generator-cyphernode/generators/app/templates/installer/config.sh @@ -3,3 +3,4 @@ BITCOIN_INTERNAL=<%= (bitcoin_mode==="internal"?'true':'false') %> FEATURE_LIGHTNING=<%= (features.indexOf('lightning') != -1)?'true':'false' %> FEATURE_OTSCLIENT=<%= (features.indexOf('otsclient') != -1)?'true':'false' %> FEATURE_ELECTRUM=<%= (features.indexOf('electrum') != -1)?'true':'false' %> +LIGHTNING_IMPLEMENTATION=<%= lightning_implementation %> \ No newline at end of file diff --git a/install/script/install_docker.sh b/install/script/install_docker.sh index f4938db..a3f9336 100644 --- a/install/script/install_docker.sh +++ b/install/script/install_docker.sh @@ -15,7 +15,11 @@ install_docker() { fi if [[ $FEATURE_LIGHTNING == true ]]; then - build_docker_image ../SatoshiPortal/dockers/$arch/LN/c-lightning cyphernode/clightning + if [[ $LIGHTNING_IMPLEMENTATION == "c-lightning" ]]; then + build_docker_image ../SatoshiPortal/dockers/$arch/LN/c-lightning cyphernode/clightning + elif [[ $LIGHTNING_IMPLEMENTATION == "lnd" ]]; then + trace "lnd is not supported right now" + fi fi if [[ $FEATURE_OTSCLIENT == true ]]; then