Added option t into allowed arg list

This commit is contained in:
Jeffrey Cline 2018-02-28 15:24:56 -08:00
parent bd113c744f
commit 233f0bdba4

View File

@ -3,17 +3,18 @@
# Script Name: install.sh # Script Name: install.sh
# Author: Greg Oliver - Microsoft github:(sebastus) # Author: Greg Oliver - Microsoft github:(sebastus)
# Version: 0.1 # Version: 0.1
# Last Modified By: Greg Oliver # Last Modified By: Jeffrey Cline
# Description: # Description:
# This script configures authentication for Terraform and remote state for Terraform. # This script configures authentication for Terraform and remote state for Terraform.
# Parameters : # Parameters :
# 1 - s: Azure subscription ID # 1 - s: Azure subscription ID
# 2 - a: Storage account name # 2 - t: Azure tenant ID
# 3 - k: Storage account key (password) # 3 - a: Storage account name
# 4 - l: MSI client id (principal id) # 4 - k: Storage account key (password)
# 5 - u: User account name # 5 - l: MSI client id (principal id)
# 6 - d: Ubuntu Desktop GUI for developement # 6 - u: User account name
# 7 - h: help # 7 - d: Ubuntu Desktop GUI for developement
# 8 - h: help
# Note : # Note :
# This script has only been tested on Ubuntu 12.04 LTS & 14.04 LTS and must be root # This script has only been tested on Ubuntu 12.04 LTS & 14.04 LTS and must be root
@ -27,6 +28,7 @@ help()
echo "Usage: " echo "Usage: "
echo "Parameters:" echo "Parameters:"
echo "- s: Azure subscription ID" echo "- s: Azure subscription ID"
echo "- t: Azure tenant ID"
echo "- a: Storage account name" echo "- a: Storage account name"
echo "- k: Storage account key (password)" echo "- k: Storage account key (password)"
echo "- l: MSI client id (principal id)" echo "- l: MSI client id (principal id)"
@ -50,7 +52,7 @@ then
fi fi
# Arguments # Arguments
while getopts :s:a:k:l:u:d: optname; do while getopts :s:t:a:k:l:u:d: optname; do
if [[ $optname != 'e' && $optname != 'k' ]]; then if [[ $optname != 'e' && $optname != 'k' ]]; then
log "Option $optname set with value ${OPTARG}" log "Option $optname set with value ${OPTARG}"
fi fi