File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
share/github-backup-utils Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,10 @@ tempdir=$(mktemp -d -t backup-utils-backup-XXXXXX)
50
50
ssh_config_file_opt=
51
51
opts=
52
52
53
- # git server hostnames under cluster
54
- if [ " $GHE_BACKUP_STRATEGY " = " cluster" ]; then
53
+ isHA=" $( ghe-ssh " $GHE_HOSTNAME " -- " ghe-config cluster.ha" || true) "
54
+
55
+ # get server hostnames under cluster and HA
56
+ if [ " $GHE_BACKUP_STRATEGY " = " cluster" ] || [ " $isHA " = " true" ] ; then
55
57
ssh_config_file=" $tempdir /ssh_config"
56
58
ssh_config_file_opt=" -F $ssh_config_file "
57
59
opts=" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no"
Original file line number Diff line number Diff line change 44
44
tempdir=$( mktemp -d -t backup-utils-backup-XXXXXX)
45
45
ssh_config_file_opt=
46
46
opts=
47
- # git server hostnames under cluster
48
- if [ " $GHE_BACKUP_STRATEGY " = " cluster" ]; then
47
+
48
+ isHA=" $( ghe-ssh " $GHE_HOSTNAME " -- " ghe-config cluster.ha" || true) "
49
+
50
+ # get server hostnames under cluster and HA
51
+ if [ " $GHE_BACKUP_STRATEGY " = " cluster" ] || [ " $isHA " = " true" ] ; then
49
52
ssh_config_file=" $tempdir /ssh_config"
50
53
ssh_config_file_opt=" -F $ssh_config_file "
51
54
opts=" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no"
You can’t perform that action at this time.
0 commit comments