[ -n "$systempackages" ] && yum -c ${vdir}/etc/yum.conf --installroot=${vdir} -y install $systempackages
[ -n "$systemgroups" ] && yum -c ${vdir}/etc/yum.conf --installroot=${vdir} -y groupinstall $systemgroups
- postfile=$(pl_locateDistroFile ../build/ ${pldistro} vserver.post)
- [ "$postfile" != "not-found-by-pl_locateDistroFile" ] && /bin/bash $postfile ${vdir} || :
+ pkgsdir=$(dirname $pkgsfile)
+ pkgsname=$(basename $pkgsfile .pkgs)
+ postfile="${pkgsdir}/${pkgsname}.post"
+ [ -f $postfile ] && /bin/bash $postfile ${vdir} || :
# Create a copy of the system vserver w/o the vserver reference files and make it smaller.
# This is a three step process: