X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fcreate-vm.sh;h=d22efb4fd17cd279472793f16f0d19946ce3ec1b;hb=57c2d4770d6e3d164e60eae106991d7fe5996f1a;hp=995e083525da76c9808ae8bfd032537d8c734802;hpb=826f95460c5dd06ab6ec04eb8cc0d6d98b9d09b8;p=infrastructure.git diff --git a/scripts/create-vm.sh b/scripts/create-vm.sh index 995e083..d22efb4 100755 --- a/scripts/create-vm.sh +++ b/scripts/create-vm.sh @@ -16,12 +16,12 @@ LOGS=$HOME/machines DOMAIN=pl.sophia.inria.fr -DEFAULT_DISTRO=f20 +DEFAULT_DISTRO=f21 CONFIRM= function usage () { message="$@" - echo "usage : $COMMAND [-c] [-f distro] [-i image] [ -m memory ] [ -n hostname ] container" + echo "usage : $COMMAND [-c] [-f distro] [-i image] [ -m memory ] [ -n hostname ] [-s] container" echo " -c : confirm, will show the command and prompt for confirmation " echo " -f : set distro, default is $DEFAULT_DISTRO" echo " -i : if specified, image is rsynced into /vservers" @@ -40,7 +40,7 @@ function usage () { } # using HOSTNAME won't work as this is already set in environment -while getopts "cf:i:m:n:h" flag; do +while getopts "cf:i:m:n:sh" flag; do case $flag in c) CONFIRM=true ;; f) DISTRO=$OPTARG ;;