~ubuntu-branches/ubuntu/saucy/iamcli/saucy-proposed

« back to all changes in this revision

Viewing changes to bin/iam-useraddpolicy

  • Committer: Bazaar Package Importer
  • Author(s): Scott Moser
  • Date: 2010-11-07 22:47:45 UTC
  • Revision ID: james.westby@ubuntu.com-20101107224745-nj9fmq7dqe3my2mv
Tags: upstream-1.1.0
ImportĀ upstreamĀ versionĀ 1.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh                                                                                                                                                                
 
2
 
 
3
# Copyright 2006-2010 Amazon.com, Inc. or its affiliates.  All Rights Reserved.  Licensed under the
 
4
# Amazon Software License (the "License").  You may not use this file except in compliance with the License. A copy of the
 
5
# License is located at http://aws.amazon.com/asl or in the "license" file accompanying this file.  This file is distributed on an "AS
 
6
# IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
 
7
# language governing permissions and limitations under the License.
 
8
 
 
9
 
 
10
if [ -n "${JAVA_HOME:+x}" ]; then
 
11
        JAVA_COMMAND=${JAVA_HOME}/bin/java
 
12
else
 
13
        echo JAVA_HOME is not set
 
14
        exit 1
 
15
fi
 
16
 
 
17
if [ -n "${AWS_IAM_HOME:+x}" ]; then
 
18
        SERVICE_HOME=${AWS_IAM_HOME}
 
19
else
 
20
        echo AWS_IAM_HOME is not set
 
21
        exit 1
 
22
fi
 
23
 
 
24
${JAVA_COMMAND} ${AWS_IAM_JVM_OPTS} -cp ${SERVICE_HOME}/lib/apache-log4j-1.2.15/*\
 
25
:${SERVICE_HOME}/lib/args4j-2.0.10/*\
 
26
:${SERVICE_HOME}/lib/commons-codec-1.3/*\
 
27
:${SERVICE_HOME}/lib/commons-httpclient-3.0.1/*\
 
28
:${SERVICE_HOME}/lib/saxonhe-9.0.2j/*\
 
29
:${SERVICE_HOME}/lib/commons-logging-1.1.1/*\
 
30
:${SERVICE_HOME}/lib/aws-iam-cli/* \
 
31
com.amazonaws.services.auth.identity.cli.view.UserAddPolicyView ${1+"$@"}