From 5edcf81a7581d8f2d93a12bf3b9d6f61104d6e4c Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 23 Nov 2009 13:53:33 +0000 Subject: [PATCH] turn into a general-purpose vserver creation script --- vbuild-init-vserver.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vbuild-init-vserver.sh b/vbuild-init-vserver.sh index fa1c4833..6c4d7c5d 100755 --- a/vbuild-init-vserver.sh +++ b/vbuild-init-vserver.sh @@ -56,7 +56,9 @@ function configure_yum_in_vserver () { echo "Cannot initialize yum.repos.d in $vserver" fi - if [ -n "$MYPLC_MODE" ] ; then + # for using vtest-init-vserver.sh as a general-purpose vserver creation wrapper + # just mention 'none' as the repo url + if [ -n "$MYPLC_MODE" -a "$REPO_URL" !- "none" ] ; then if [ ! -d /vservers/$vserver/etc/yum.repos.d ] ; then echo "WARNING : cannot create myplc repo" else @@ -398,6 +400,8 @@ function usage () { echo "vserver-options" echo " all args after the optional -- are passed to vserver build " echo " typical usage is e.g. --interface eth0:200.150.100.10/24" + echo "With $COMMAND_MYPLC you can give 'none' as the URL, in which case" + echo " myplc.repo does not get created" exit 1 } -- 2.43.0