mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-16 02:38:44 +00:00
use ec2-metadata from PATH
This commit is contained in:
@@ -5,10 +5,6 @@
|
||||
# An existing xfs partition will be left alone.
|
||||
. imageupgrade_functions.sh
|
||||
|
||||
get_ec2_user_data() {
|
||||
/usr/bin/ec2metadata --user
|
||||
}
|
||||
|
||||
METADATA=$( get_ec2_user_data )
|
||||
echo "Metadata: ${METADATA}"
|
||||
if echo "${METADATA}" | grep -q "^image-upgrade$"; then
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
|
||||
. imageupgrade_functions.sh
|
||||
|
||||
get_ec2_user_data() {
|
||||
/bin/ec2-metadata -d | sed -e 's/^user-data: //'
|
||||
}
|
||||
|
||||
METADATA=$( get_ec2_user_data )
|
||||
echo "Metadata: ${METADATA}"
|
||||
if echo "${METADATA}" | grep -q "^image-upgrade$"; then
|
||||
|
||||
Reference in New Issue
Block a user