dockcross: Add support for per-project configuration

This commit is contained in:
Jean-Christophe Fillion-Robin committed 2016-11-26 21:47:11 -05:00
1 parent b8317c88a0
commit 4ad3e1a94f
2 files changed
+19 -2

No files matched your search

+5
View File
@@ -35,6 +35,11 @@ if [[ -n $BUILDER_UID ]] && [[ -n $BUILDER_GID ]]; then
/dockcross/pre_exec.sh
fi
# Execute project specific pre execution hook
if [[ -e /work/.dockcross ]]; then
chpst -u :$BUILDER_UID:$BUILDER_GID /work/.dockcross
fi
# Run the command as the specified user/group.
exec chpst -u :$BUILDER_UID:$BUILDER_GID "$@"
else