Skip to content

Commit 233f0bd

Browse files
committed
Added option t into allowed arg list
1 parent bd113c7 commit 233f0bd

File tree

1 file changed

+10
-8
lines changed
  • solution_template/vm-linux-terraform/scripts

1 file changed

+10
-8
lines changed

solution_template/vm-linux-terraform/scripts/install.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
# Script Name: install.sh
44
# Author: Greg Oliver - Microsoft github:(sebastus)
55
# Version: 0.1
6-
# Last Modified By: Greg Oliver
6+
# Last Modified By: Jeffrey Cline
77
# Description:
88
# This script configures authentication for Terraform and remote state for Terraform.
99
# Parameters :
1010
# 1 - s: Azure subscription ID
11-
# 2 - a: Storage account name
12-
# 3 - k: Storage account key (password)
13-
# 4 - l: MSI client id (principal id)
14-
# 5 - u: User account name
15-
# 6 - d: Ubuntu Desktop GUI for developement
16-
# 7 - h: help
11+
# 2 - t: Azure tenant ID
12+
# 3 - a: Storage account name
13+
# 4 - k: Storage account key (password)
14+
# 5 - l: MSI client id (principal id)
15+
# 6 - u: User account name
16+
# 7 - d: Ubuntu Desktop GUI for developement
17+
# 8 - h: help
1718
# Note :
1819
# This script has only been tested on Ubuntu 12.04 LTS & 14.04 LTS and must be root
1920

@@ -27,6 +28,7 @@ help()
2728
echo "Usage: "
2829
echo "Parameters:"
2930
echo "- s: Azure subscription ID"
31+
echo "- t: Azure tenant ID"
3032
echo "- a: Storage account name"
3133
echo "- k: Storage account key (password)"
3234
echo "- l: MSI client id (principal id)"
@@ -50,7 +52,7 @@ then
5052
fi
5153

5254
# Arguments
53-
while getopts :s:a:k:l:u:d: optname; do
55+
while getopts :s:t:a:k:l:u:d: optname; do
5456
if [[ $optname != 'e' && $optname != 'k' ]]; then
5557
log "Option $optname set with value ${OPTARG}"
5658
fi

0 commit comments

Comments
 (0)