~awstools-dev/ubuntu/maverick/iamcli/maverick

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh                                                                                                                                                                

# Copyright 2006-2010 Amazon.com, Inc. or its affiliates.  All Rights Reserved.  Licensed under the
# Amazon Software License (the "License").  You may not use this file except in compliance with the License. A copy of the
# License is located at http://aws.amazon.com/asl or in the "license" file accompanying this file.  This file is distributed on an "AS
# IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.


if [ -n "${JAVA_HOME:+x}" ]; then
	JAVA_COMMAND=${JAVA_HOME}/bin/java
else
	echo JAVA_HOME is not set
	exit 1
fi

if [ -n "${AWS_IAM_HOME:+x}" ]; then
	SERVICE_HOME=${AWS_IAM_HOME}
else
	echo AWS_IAM_HOME is not set
	exit 1
fi

"${JAVA_COMMAND}" ${AWS_IAM_JVM_OPTS} -cp "${SERVICE_HOME}/lib/apache-log4j-1.2.15/*\
:${SERVICE_HOME}/lib/args4j-2.0.10/*\
:${SERVICE_HOME}/lib/commons-codec-1.3/*\
:${SERVICE_HOME}/lib/commons-httpclient-3.0.1/*\
:${SERVICE_HOME}/lib/saxonhe-9.0.2j/*\
:${SERVICE_HOME}/lib/commons-logging-1.1.1/*\
:${SERVICE_HOME}/lib/aws-iam-cli/*" \
com.amazonaws.services.auth.identity.cli.view.GroupAddUserView ${1+"$@"}