From b687e3297d394bf9c91f1e0f477da338ddcd86cb Mon Sep 17 00:00:00 2001 From: Rob Blanckaert Date: Sat, 29 Aug 2015 00:33:27 -0400 Subject: [PATCH] Cygwin tar can sometimes make tarballs with permissions where the owner doesnt have read rights on the files. Thats obviously no good. --- plugins/tar/commands | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/tar/commands b/plugins/tar/commands index b010262ca..f18898e66 100755 --- a/plugins/tar/commands +++ b/plugins/tar/commands @@ -48,6 +48,7 @@ case "$1" in dokku_log_info1_quiet "Striping $BOGUS_PARTS worth of directories from tarball" tar -x -C "$TMP_WORK_DIR" -f "$DOKKU_ROOT/$APP/src.tar" --strip-components=$BOGUS_PARTS + chmod -R u+r "$TMP_WORK_DIR" #find -name .git -prune -exec rm -rf {} \; > /dev/null if [[ -f Dockerfile ]] && [[ "$([[ -f .env ]] && grep -q BUILDPACK_URL .env; echo $?)" != "0" ]] && [[ ! -f ".buildpacks" ]]; then