X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fcreate-vm.sh;h=617ec51cf26496782725ea61379b06ac33fd8044;hb=b1b042a53d694d548a0da1cd0793ad1e9a3734ea;hp=e96d70f087adf4de1d50cdb493bb604e4862ace1;hpb=47fc5b84b0f4b58d2dcb63431308c5397de27ae7;p=infrastructure.git diff --git a/scripts/create-vm.sh b/scripts/create-vm.sh index e96d70f..617ec51 100755 --- a/scripts/create-vm.sh +++ b/scripts/create-vm.sh @@ -5,18 +5,13 @@ DIRNAME=$(dirname $0) BUILD="${HOME}/git-build" -echo "Updating $BUILD" -cd $BUILD -git pull -cd - - LOGS=$HOME/machines [ -d $LOGS ] || { echo "Creating logs dir $LOGS" ; mkdir -p $LOGS; } DOMAIN=pl.sophia.inria.fr -DEFAULT_DISTRO=f21 +DEFAULT_DISTRO=f23 DEFAULT_MEMORY=4096 CONFIRM= @@ -62,6 +57,11 @@ container="$1" ; shift [ -d "$BUILD" ] || usage "Could not find directory $BUILD" [ -d /vservers/$container ] && usage "container $container already exists in /vservers" +echo "Updating $BUILD" +cd $BUILD +git pull +cd - + # compute all vars from args [ -z "$DISTRO" ] && DISTRO="$DEFAULT_DISTRO" [ -z "$MEMORY" ] && MEMORY="$DEFAULT_MEMORY"