]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Start userdata script after decoding
authorSteven Dake <sdake@redhat.com>
Sun, 1 Apr 2012 20:40:37 +0000 (13:40 -0700)
committerSteven Dake <sdake@redhat.com>
Sun, 1 Apr 2012 21:54:41 +0000 (14:54 -0700)
Signed-off-by: Steven Dake <sdake@redhat.com>
heat/jeos/F16-x86_64-gold-jeos.tdl
heat/jeos/F17-x86_64-gold-jeos.tdl

index 491676e6784297106923238032e615b9611a3135..2dff435c96edd11bd1d154009fe5eea19ac79063 100644 (file)
@@ -49,6 +49,12 @@ while [ ! -f /root/.ssh/authorized_keys ]; do
         sleep 5
     fi
 done
+while [ ! -f /var/lib/cloud/instance/user-data.txt ]; do
+        sleep 1
+done
+base64 -d /var/lib/cloud/instance/user-data.txt > /tmp/startup
+chmod +x /tmp/startup
+/tmp/startup
 EOF
     </command>
   </commands>
index a9b8a2058452382a754091775af924edae4ee160..06f605e6fb9b5197f7f4b2db2ff7a3c6ca3e76cf 100644 (file)
@@ -49,6 +49,12 @@ while [ ! -f /root/.ssh/authorized_keys ]; do
         sleep 5
     fi
 done
+while [ ! -f /var/lib/cloud/instance/user-data.txt ]; do
+        sleep 1
+done
+base64 -d /var/lib/cloud/instance/user-data.txt > /tmp/startup
+chmod +x /tmp/startup
+/tmp/startup
 EOF
     </command>
   </commands>