type -p createrepo > /dev/null && have_createrepo="true"
- ### copy vserver-PLDISTRO* and vserver-systemslices-PLDISTRO*
- ### pacakges to each repository to be able to create different
+ ### symlink vserver-PLDISTRO* and vserver-systemslices-PLDISTRO*
+ ### packages to each repository to be able to create different
### flavours of vservers on nodes
for repository1 in $repositories; do
DISTRO=${PLC_FLAVOUR_SLICE_PLDISTRO}
if [[ $(basename $repository1) == ${DISTRO}* ]] \
&& [[ $(basename $repository2) == ${DISTRO}* ]] \
&& [[ $repository1 != $repository2 ]] ; then
+ rm -rf $repository2/${VSERVER_PKG}*
+ rm -rf $repository2/${VSERVER_SYS_SLICES_PKG}*
+
ln -s $repository1/${VSERVER_PKG}* $repository2
ln -s $repository1/${VSERVER_SYS_SLICES_PKG}* $repository2
fi
new_stamps=
# is there a need to refresh yum metadata
need_yum_arch=
- need_createrepo=
+ need_createrepo=true # always run createrepo as links may change for vserver packages
# right after installation, no package is present
# but we still need to create index