File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
share/github-backup-utils Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,13 @@ if ! indices=$(ghe-ssh "$host" "curl -s \"localhost:$es_port/_cat/indices/audit_
31
31
exit 1
32
32
fi
33
33
34
+ # Determine if the audit log migration has occurred or is needed.
35
+ if echo ' set -o pipefail; ! test -e /data/user/common/es-scan-complete && test -f /usr/local/share/enterprise/run-audit-log-transitions.sh' | ghe-ssh " $host " /bin/bash; then
36
+ if echo ' set -o pipefail; echo n | /usr/local/share/enterprise/run-audit-log-transitions.sh > /dev/null 2>&1 && touch /data/user/common/es-scan-complete' | ghe-ssh " $host " /bin/bash; then
37
+ touch $GHE_SNAPSHOT_DIR /es-scan-complete
38
+ fi
39
+ fi
40
+
34
41
current_index=audit_log-$( ghe-ssh " $host " ' date +"%Y-%m"' )
35
42
36
43
for index in $indices ; do
You can’t perform that action at this time.
0 commit comments