Cygwin tar can sometimes make tarballs with permissions where the owner doesnt have read rights on the files. Thats obviously no good.
This commit is contained in:
@@ -48,6 +48,7 @@ case "$1" in
|
|||||||
dokku_log_info1_quiet "Striping $BOGUS_PARTS worth of directories from tarball"
|
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
|
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
|
#find -name .git -prune -exec rm -rf {} \; > /dev/null
|
||||||
|
|
||||||
if [[ -f Dockerfile ]] && [[ "$([[ -f .env ]] && grep -q BUILDPACK_URL .env; echo $?)" != "0" ]] && [[ ! -f ".buildpacks" ]]; then
|
if [[ -f Dockerfile ]] && [[ "$([[ -f .env ]] && grep -q BUILDPACK_URL .env; echo $?)" != "0" ]] && [[ ! -f ".buildpacks" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user