Support optional aws related userData

This commit is contained in:
Johannes Zellner
2015-08-25 17:28:06 -07:00
parent 9fdcd452d0
commit e6fd05c2bd
3 changed files with 10 additions and 5 deletions

View File

@@ -16,6 +16,7 @@ arg_tls_key=""
arg_token=""
arg_version=""
arg_web_server_origin=""
arg_aws=""
args=$(getopt -o "" -l "data:,retire" -n "$0" -- "$@")
eval set -- "${args}"
@@ -41,6 +42,9 @@ EOF
arg_restore_key=$(echo "$2" | $json restoreKey)
[[ "${arg_restore_key}" == "null" ]] && arg_restore_key=""
arg_aws=$(echo "$2" | $json aws)
[[ "${arg_aws}" == "null" ]] && arg_aws=""
shift 2
;;
--) break;;