From: Thierry Parmentelat Date: Thu, 17 Jan 2013 08:58:26 +0000 (+0100) Subject: fixed - would work only with -P X-Git-Tag: 5.2.1~128 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a46eaa49b0ee83d7649d54028fbfdbeffe0c0044;p=build.git fixed - would work only with -P --- diff --git a/vbuild-nightly.sh b/vbuild-nightly.sh index 8d52232d..9c9d1706 100755 --- a/vbuild-nightly.sh +++ b/vbuild-nightly.sh @@ -496,7 +496,7 @@ function main () { -v) set -x ; VERBOSE="-v" ; shift ;; -7) BASE="$(date +%a|tr A-Z a-z)-@FCDISTRO@" ; shift ;; -i) IFNAME=$2; shift 2 ;; - -P) PREINSTALLED=$2; shift 2;; + -P) PREINSTALLED="-P $2"; shift 2;; -h) usage ; shift ;; --) shift; break ;; esac @@ -655,7 +655,7 @@ function main () { fi # Create vserver cd $tmpdir - ./vbuild-init-vserver.sh $VERBOSE -f ${FCDISTRO} -d ${PLDISTRO} -p ${PERSONALITY} -i ${IFNAME} -P ${PREINSTALLED} ${BASE} + ./vbuild-init-vserver.sh $VERBOSE -f ${FCDISTRO} -d ${PLDISTRO} -p ${PERSONALITY} -i ${IFNAME} ${PREINSTALLED} ${BASE} # cleanup cd - rm -rf $tmpdir