-
Notifications
You must be signed in to change notification settings - Fork 47
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
fix Git download chart for GHE 2.11.0 #44
Conversation
updater/scripts/git-download.sh
Outdated
@@ -15,13 +15,20 @@ function ghe_greater_equal () { | |||
|
|||
if ghe_greater_equal "2.11.0" ; then | |||
LOG_FILE="/var/log/github-audit.log" | |||
# The "github-audit.log" log file introduced in GHE 2.11.0 is only rolled | |||
# once a week. This was reported as bug and is likely fixed in an upcoming |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: “as a bug”
updater/scripts/git-download.sh
Outdated
# once a week. This was reported as bug and is likely fixed in an upcoming | ||
# version. In the meantime we grep for all log entries that have been | ||
# written yesterday. | ||
GREP_YESTERDAY="grep -F '$(date --date='yesterday' +'%b %d')'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, we could add something like # TODO: remove workaround once GitHub Enterprise is patched
so that we clean this up as soo as this workaround isn’t necessary anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I don't think we can remove it because GHE 2.11.0 - 2.11.x will always have this bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me aside from a typo and a little suggestion (see above).
The "github-audit.log" log file introduced in GHE 2.11.0 is only rolled once a week. This was reported as a bug and is likely fixed in an upcoming version. In the meantime we grep for all log entries that have been written yesterday.
b8fbdcf
to
f73391b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, then let’s leave the TODO
out until we drop support for GitHub 2.11 (which is a long time ago).
The "github-audit.log" log file introduced in GHE 2.11.0 is only rolled
once a week. This was reported as bug and is likely fixed in an upcoming
version. In the meantime we grep for all log entries that have been
written yesterday.