From 0b9a7750e55fd82878891d62306876506fc2b5ec Mon Sep 17 00:00:00 2001 From: pablomendezroyo <41727368+pablomendezroyo@users.noreply.github.com> Date: Thu, 15 Feb 2024 17:06:27 +0100 Subject: [PATCH] Use subnet var --- scripts/dappnode_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dappnode_install.sh b/scripts/dappnode_install.sh index b14cf06..df47bd1 100755 --- a/scripts/dappnode_install.sh +++ b/scripts/dappnode_install.sh @@ -330,7 +330,7 @@ if [ -z "$(docker network ls | grep dncore_network)" ] && [ "$(docker network in docker network rm dncore_network 2>&1 | tee -a $LOGFILE fi echo -e "\e[32mCreating dncore_network if needed...\e[0m" 2>&1 | tee -a $LOGFILE -docker network create --driver bridge --subnet 10.20.0.0/24 dncore_network 2>&1 | tee -a $LOGFILE +docker network create --driver bridge --subnet "${SUBNET}" dncore_network 2>&1 | tee -a $LOGFILE # Connect all containers to dncore_network if any if [ -n "$CONTAINERS" ]; then echo -e "\e[32mConnecting containers to dncore_network...\e[0m" 2>&1 | tee -a $LOGFILE