From: Barış Metin Date: Tue, 20 Apr 2010 16:31:12 +0000 (+0000) Subject: get the correct pkg name X-Git-Tag: BootstrapFS-2.0-5~6 X-Git-Url: http://git.onelab.eu/?p=nodeimage.git;a=commitdiff_plain;h=4188312716f940a3ed1db294dd28604734f61d98 get the correct pkg name --- diff --git a/plc.d/packages b/plc.d/packages index 06083fd..5afe7bf 100755 --- a/plc.d/packages +++ b/plc.d/packages @@ -48,16 +48,19 @@ case "$1" in ### pacakges to each repository to be able to create different ### flavours of vservers on nodes for repository1 in $repositories; do + DISTRO=${PLC_FLAVOUR_SLICE_PLDISTRO} + VSERVER_PKG=vserver-$(basename $repository1) + VSERVER_SYS_SLICES_PKG=vserver-systemslices-$(basename $repository1) for repository2 in $repositories; do - if [[ $(basename $repository1) == ${PLC_FLAVOUR_NODE_PLDISTRO}* ]] \ - && [[ $(basename $repository2) == ${PLC_FLAVOUR_NODE_PLDISTRO}* ]] \ + if [[ $(basename $repository1) == ${DISTRO}* ]] \ + && [[ $(basename $repository2) == ${DISTRO}* ]] \ && [[ $repository1 != $repository2 ]] ; then - cp -a $repository1/vserver{,-systemslices}-${PLC_FLAVOUR_NODE_PLDISTRO}* $repository2 + cp -a $repository1/${VSERVER_PKG}* $repository2 + cp -a $repository1/${VSERVER_SYS_SLICES_PKG}* $repository2 fi done done - for repository in $repositories ; do # the rpms that need signing new_rpms=