Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission issue in bootstrap.sh when running set-git-source.sh from newly created gitops-0-bootstrap folder #194

Open
David-M-IBM opened this issue Feb 1, 2022 · 3 comments

Comments

@David-M-IBM
Copy link
Contributor

David-M-IBM commented Feb 1, 2022

When trying to run bootstrap.sh in a docker container (image registry.access.redhat.com/ubi8/python-39) I receive a "Permission denied" error when it reaches the set_git_source function and tries to run GIT_ORG=${GIT_ORG} ./scripts/set-git-source.sh.

I looked into it, and it appears that when the gitops-0-bootstrap repo is cloned in, the .sh scripts aren't executable by default. So when bootstrap.sh in my initial folder creates the new gitops-0-bootstrap folder and then tries to run the set-git-source.sh file that is inside of it, it fails because the newly created file is not executable.

I was wondering if anyone has run into a similar problem, and while I can shim in a fix in the set_git_source function, I am trying to use this repo as an imported submodule and not make any changes.
logs.pdf

@ncolon
Copy link
Contributor

ncolon commented Mar 31, 2022

@hollisc can we use GIT_ORG=${GIT_ORG} source ./scripts/set-git-source.sh instead?

@hollisc
Copy link
Contributor

hollisc commented Mar 31, 2022

Let's test this out. When I last chatted with David, I believe the permission issue was due to the container they are using and it was out of date. @David-M-IBM, are you still hitting this permission issue ?

@David-M-IBM
Copy link
Contributor Author

David-M-IBM commented Apr 1, 2022

@hollisc I initially copied the code from an earlier version, but the problems were caused by these lines 1, 2 because they are trying to run the newly created file as an executable. When I started experimenting with the bootstrap_gitea.sh script I believe I ran into the same issue. So yes, this is still something I have to work around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants