done
fi
+ echo "Created and populated the container creation and configuration directory."
+}
+
+set_c3d_ownership()
+{
+ echo "Setting ownership of the container creation and configuration directory files."
+
OWNER_LIST=$CONTAINER_BUILDROOT/c3d/owner.txt
if [ -f $OWNER_LIST ]
then
--regexp='^$' $OWNER_LIST | while read LINE
do
TGT_OWNER=$(echo "$LINE" | cut -f 1 -d ' ')
- TGT_PATH=$(echo "$LINE" | cut -f 2 -d ' ')
- chroot $CONTAINER_BUILDROOT chown $TGT_OWNER /c3d/$TGT_PATH
+ GLOB_TGT_PATH=$(echo "$LINE" | cut -f 2 -d ' ')
+ for BUILDROOT_TGT_PATH in $CONTAINER_BUILDROOT/c3d/$GLOB_TGT_PATH
+ do
+ TGT_PATH=$(echo $BUILDROOT_TGT_PATH | sed "s|^$CONTAINER_BUILDROOT||")
+ chroot $CONTAINER_BUILDROOT chown $TGT_OWNER $TGT_PATH
+ done
done
fi
- echo "Created and populated the container creation and configuration directory."
+ echo "Set ownership of the container creation and configuration directory files."
}
set_variables()
create_build_path
+populate_c3d
+
preinstall
copy_and_install
-populate_c3d
+set_c3d_ownership
postinstall