+
Skip to content

Git checks not working properly on GW servers #4

@TimStallard

Description

@TimStallard

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载