You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by li...@apache.org on 2020/07/27 11:46:18 UTC

[submarine] branch master updated: SUBMARINE-581. Change submarine-cloud/bin permission

This is an automated email from the ASF dual-hosted git repository.

liuxun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/submarine.git


The following commit(s) were added to refs/heads/master by this push:
     new 99ba038  SUBMARINE-581. Change submarine-cloud/bin permission
99ba038 is described below

commit 99ba038f5397cd262126e48a507e050c12f79d23
Author: pingsutw <pi...@gmail.com>
AuthorDate: Mon Jul 27 00:26:52 2020 +0800

    SUBMARINE-581. Change submarine-cloud/bin permission
    
    ### 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 <pi...@gmail.com>
    
    Closes #361 from pingsutw/SUBMARINE-581 and squashes the following commits:
    
    d5967b8 [pingsutw] SUBMARINE-581. Change submarine-cloud/bin permission
---
 submarine-cloud/build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/submarine-cloud/build.sh b/submarine-cloud/build.sh
index 9890a1e..7cb1e34 100755
--- a/submarine-cloud/build.sh
+++ b/submarine-cloud/build.sh
@@ -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;


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org