Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
SUBMARINE-581. Change submarine-cloud/bin permission
Browse files Browse the repository at this point in the history
### What is this PR for?
After building the submarine project, `submarine-cloud/bin` will have root privilege
Change the directory permission to the current user and group.

### What type of PR is it?
[Bug Fix]

### Todos
* [ ] - Task

### What is the Jira issue?
https://issues.apache.org/jira/browse/SUBMARINE-581

### How should this be tested?
https://travis-ci.org/github/pingsutw/hadoop-submarine/builds/711959054

### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: pingsutw <pingsutw@gmail.com>

Closes #361 from pingsutw/SUBMARINE-581 and squashes the following commits:

d5967b8 [pingsutw] SUBMARINE-581. Change submarine-cloud/bin permission
  • Loading branch information
pingsutw authored and xunliu committed Jul 27, 2020
1 parent cbae6ef commit 99ba038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion submarine-cloud/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ if [[ "${1}"x == "test"x ]]; then
elif [ "${1}"x == "clean"x ]; then
rm -rf ./bin
else
docker run --rm -v "$CURRENT_PATH":/go/src/submarine-cloud -w /go/src/submarine-cloud -e GOOS="${GOOS:-darwin}" -e GOARCH="${GOARCH:-amd64}" apache/submarine:build make ${1}
docker run --rm -v "$CURRENT_PATH":/go/src/submarine-cloud -w /go/src/submarine-cloud -e GOOS="${GOOS:-darwin}" -e GOARCH="${GOARCH:-amd64}" apache/submarine:build /bin/sh -c "make ${1} && chown -R $(id -u):$(id -g) ./bin"
fi;

0 comments on commit 99ba038

Please sign in to comment.