Skip to content

Commit

Permalink
Use subnet var
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo authored Feb 15, 2024
1 parent 978160b commit 0b9a775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dappnode_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b9a775

Please sign in to comment.