Skip to content

Commit b53f1d5

Browse files
authored
Remove unused code in ghe-restore-es-rsync
1 parent da35308 commit b53f1d5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

share/github-backup-utils/ghe-restore-es-rsync

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ else
4444
"$snapshot_dir/elasticsearch/" \
4545
"$(ssh_host_part "$GHE_HOSTNAME"):$GHE_REMOTE_DATA_USER_DIR/elasticsearch-restore" 1>&3
4646
log_rsync "END: elasticsearch rsync" 1>&3
47-
# restoring in >=2.14 will remove incompatible indices created with 1.x.
48-
if [ "$GHE_VERSION_MAJOR" -eq 2 ] && [ "$GHE_VERSION_MINOR" -ge 14 ]; then
49-
ghe-ssh "$GHE_HOSTNAME" -- "sudo /usr/local/share/enterprise/ghe-es-remove-1x-indices"
50-
fi
5147
fi
5248

5349
bm_end "$(basename $0)"

0 commit comments

Comments
 (0)