From dd7e7d65b65f2f1706d18402136bcbaecbf8c897 Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Tue, 14 Jun 2022 21:46:21 +0000 Subject: add username:user_group --- src/go/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/go') diff --git a/src/go/install.sh b/src/go/install.sh index 96a1b38..e524e26 100644 --- a/src/go/install.sh +++ b/src/go/install.sh @@ -245,7 +245,7 @@ if [[ "\${PATH}" != *"\${GOROOT}/bin"* ]]; then export PATH="\${PATH}:\${GOROOT} EOF )" -chown -R :golang "${TARGET_GOROOT}" "${TARGET_GOPATH}" +chown -R "${USERNAME}:golang" "${TARGET_GOROOT}" "${TARGET_GOPATH}" chmod -R g+r+w "${TARGET_GOROOT}" "${TARGET_GOPATH}" find "${TARGET_GOROOT}" -type d | xargs -n 1 chmod g+s find "${TARGET_GOPATH}" -type d | xargs -n 1 chmod g+s -- cgit v1.2.3