f21
[infrastructure.git] / scripts / create-vm.sh
index 995e083..d22efb4 100755 (executable)
@@ -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 ;;