the very same sed command is run by config.planetlab/vserver.post
[vserver-reference.git] / build.sh
index 569dc47..7db9fc3 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -98,7 +98,7 @@ systemvserver_count=$(ls ../build/config.${pldistro}/vserver-*.pkgs 2> /dev/null
 
     pkgsdir=$(dirname $pkgsfile)
     pkgsname=$(basename $pkgsfile .pkgs)
-    postfile="${pkgsdir}/${pkgsname}.post"
+    postfile=$(pl_locateDistroFile ../build/ ${pldistro} "${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. 
@@ -132,7 +132,7 @@ done
 
 pkgsdir=$(dirname $pkgsfile)
 pkgsname=$(basename $pkgsfile .pkgs)
-postfile="${pkgsdir}/${pkgsname}.post"
+postfile=$(pl_locateDistroFile ../build/ ${pldistro} "${pkgsname}.post")
 [ -f $postfile ] && /bin/bash $postfile ${vref} || :
 
 # fix sudoers config