Start userdata script after decoding

Signed-off-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
Steven Dake 2012-04-01 13:40:37 -07:00
parent 7dee96f56d
commit d924d9db06
2 changed files with 12 additions and 0 deletions

View 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>

View 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>