uksysadmin / OpenStackInstaller

Simple OpenStack Installer Script
http://www.hybridclouds.co.uk/
69 stars 33 forks source link

Upload_ubuntu.sh possible mistake #11

Closed AdrienR closed 11 years ago

AdrienR commented 12 years ago

Hi, I try your script for upload ubuntu to OpenStack and I found, maybe, a mistake in the command upload_ubuntu.sh :

while getopts a:p:t:C: opts
do
case $opts in
    a)
        ADMIN=${OPTARG}
        ;;
    p)
        PASSWORD=${OPTARG}
        ;;
    t)
        TENANT=${OPTARG}
        ;;
    C)
        ENDPOINT=${OPTARG}
        ;;
    *)
        echo "Syntax: $(basename $0) -u USER -p KEYSTONE -t TENANT -C CONTROLLER_IP"
        exit 1
        ;;
  esac
done

In the *) the '-u' option should be replaced by '-a' no ?