Change the order of context.sh retrieval methods

pull/25/head
Javi Fontan 9 years ago
parent a39784fca5
commit b5e1d71590

@ -48,14 +48,14 @@ function start {
execute_scripts
umount /mnt
elif curl -o /tmp/context.sh http://169.254.169.254/latest/user-data ; then
export_rc_vars /tmp/context.sh
execute_scripts
elif type vmtoolsd ; then
vmtoolsd --cmd 'info-get guestinfo.opennebula.context' | \
openssl base64 -d > /tmp/context.sh
export_rc_vars /tmp/context.sh
execute_scripts
elif curl -o /tmp/context.sh http://169.254.169.254/latest/user-data ; then
export_rc_vars /tmp/context.sh
execute_scripts
fi
}

Loading…
Cancel
Save