-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels