You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
they don't like the git repo on there:
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 thisThe text was updated successfully, but these errors were encountered: