Skip to content

Commit e46f8c9

Browse files
committed
remove complete flag from all cluster nodes
1 parent e34b81b commit e46f8c9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

share/github-backup-utils/ghe-restore-audit-log

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,14 @@ mysql_restored_enabled(){
3535
}
3636

3737
remove_complete_flag(){
38-
ghe_verbose "Setting instance as pending for audit log import to MySQL"
38+
ghe_verbose "Setting instance(s) as pending for audit log import to MySQL"
3939
ghe-ssh "$GHE_HOSTNAME" -- "sudo rm -rf $GHE_REMOTE_ROOT_DIR/data/user/common/audit-log-import/complete" 1>&3 2>&3
40+
41+
if $CLUSTER; then
42+
if ! ghe-ssh "$GHE_HOSTNAME" -- "ghe-cluster-each -- sudo rm -rf /data/user/common/audit-log-import/complete" 1>&3 2>&3; then
43+
ghe_verbose "Failed to set as pending for audit log import to MySQL all instances in cluster"
44+
fi
45+
fi
4046
}
4147

4248
# Use `ghe-backup-mysql-audit-log` to dump the audit entries.

0 commit comments

Comments
 (0)