@@ -93,25 +93,22 @@ if ghe-ssh "$host" -- \
93
93
CLUSTER=true
94
94
fi
95
95
96
- set +e
97
96
# ensure all nodes in the cluster are online/reachable and running the same version
98
97
if " $CLUSTER " ; then
99
98
online_status=$( ghe-ssh " $host " ghe-cluster-host-check)
100
99
if [ " $online_status " != " Cluster is ready to configure." ]; then
101
- echo " $online_status " 1>&2
102
- log_error " Error: Not all nodes are online! Please ensure cluster is in a healthy state before using backup-utils." 1>&2
100
+ echo " Error: Not all nodes are online! Please ensure cluster is in a healthy state before using backup-utils." 1>&2
103
101
exit 1
104
102
fi
105
103
106
104
node_version_list=$( ghe-ssh " $host " ghe-cluster-each -- ghe-version)
107
105
distinct_versions=$( echo " $node_version_list " | awk ' {split($0, a, ":"); print a[2]}' | awk ' {print $4}' | uniq | wc -l)
108
106
if [ " $distinct_versions " -ne 1 ]; then
109
107
echo " Version mismatch: $node_version_list " 1>&2
110
- log_error " Error: Not all nodes are running the same version! Please ensure all nodes are running the same version before using backup-utils." 1>&2
108
+ echo " Error: Not all nodes are running the same version! Please ensure all nodes are running the same version before using backup-utils." 1>&2
111
109
exit 1
112
110
fi
113
111
fi
114
- set -e
115
112
116
113
version=$( echo " $output " | grep " GitHub Enterprise" | awk ' {print $NF}' )
117
114
@@ -213,7 +210,7 @@ SKIP_MSG
213
210
214
211
# Display dir requirements for repositories and mysql
215
212
echo -e " \nChecking host for sufficient space for a backup..."
216
- available_space=$( df -B 1k $GHE_DATA_DIR | awk ' END{printf "%.0f", $4 * 1024}' )
213
+ available_space=$( df -B 1k $GHE_DATA_DIR | awk ' END{printf "%.0f", $4 * 1024}' )
217
214
echo " We recommend allocating at least 5x the amount of storage allocated to the primary GitHub appliance for historical snapshots and growth over time."
218
215
219
216
repos_disk_size=$( transfer_size repositories /tmp)
0 commit comments