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

Git checks not working properly on GW servers #4

Open
TimStallard opened this issue Nov 20, 2022 · 0 comments
Open

Git checks not working properly on GW servers #4

TimStallard opened this issue Nov 20, 2022 · 0 comments

Comments

@TimStallard
Copy link
Member

they don't like the git repo on there:

root@gw-b32:~# sudo -u nagios /usr/local/lib/nagios/plugins/check_git
fatal: detected dubious ownership in repository at '/opt/sown/network'
To add an exception for this directory, call:

	git config --global --add safe.directory /opt/sown/network
...

I think perhaps we should be running these under sudo? OTOH I don't think that's safe where the directory is controlled by another user

so maybe we actually need /etc/git-repos to contain a username for each repo as well, then we run the entire check script as root, but it can run git as the right user for each repo?

probably we should also set -e so we don't get silent failures like this

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

1 participant