[sdc] update code of sdc
[sdc.git] / sdc-os-chef / sdc-cassandra / startup.sh
index 3c001df..6107f60 100755 (executable)
@@ -2,7 +2,8 @@
 
 cd /root/chef-solo
 mkdir -p /root/chef-solo/cookbooks/cassandra-actions/attributes
-echo "normal['version'] = \"${RELEASE}\""  > /root/chef-solo/cookbooks/cassandra-actions/attributes/default.rb
+cl_rel=`basename /root/chef-solo/cookbooks/cassandra-actions/files/default/SDC* .zip|awk -F"-" '{print $2}'`
+echo "normal['version'] = \"${cl_rel}\""   > /root/chef-solo/cookbooks/cassandra-actions/attributes/default.rb
 echo "normal['HOST_IP'] = \"${HOST_IP}\"" >> /root/chef-solo/cookbooks/cassandra-actions/attributes/default.rb
 
 export CHEFNAME=${ENVNAME}