From d7f9d4a5904854a22466d761d231b01c5cc0df74 Mon Sep 17 00:00:00 2001 From: Aleksandr Didenko Date: Tue, 28 Jun 2016 12:58:05 +0200 Subject: [PATCH] Fix bug in shell command --- ccp/ccp-deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccp/ccp-deploy.sh b/ccp/ccp-deploy.sh index a42a56239..8918f6c4c 100755 --- a/ccp/ccp-deploy.sh +++ b/ccp/ccp-deploy.sh @@ -3,7 +3,7 @@ set -e create_network_conf() { - ( echo "network:"; i=2; for ip in `cat /root/nodes `; do echo -e " node$i:\n private:\n iface: eth2\n address: $ip"; pip=`echo $ip | perl -pe "s/(\d+).(\d+).1/\${1}.\${2}.0/g"`; echo -e " public:\n iface: eth1\n address: $pip" ; i=$(( i+=1 )) ;done ) > /root/cluster-topology.yaml + ( echo "network:"; i=2; for ip in `cat /root/nodes `; do echo -e " node$i:\n private:\n iface: eth2\n address: $ip"; pip=`echo $ip | perl -pe 's/(\d+).(\d+).1/\${1}.\${2}.0/g'`; echo -e " public:\n iface: eth1\n address: $pip" ; i=$(( i+=1 )) ;done ) > /root/cluster-topology.yaml } assign_node_roles() {