File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
share/github-backup-utils Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ snapshot_dir="$GHE_DATA_DIR/$GHE_RESTORE_SNAPSHOT"
32
32
if is_external_database_snapshot; then
33
33
if [ -n " $EXTERNAL_DATABASE_RESTORE_SCRIPT " ]; then
34
34
$EXTERNAL_DATABASE_RESTORE_SCRIPT
35
+ # ensure that haproxy and mysql are ready to accept connections before continuing
36
+ if ! ghe-ssh " $GHE_HOSTNAME " -- " /usr/local/share/enterprise/ghe-service-wait-mysql" ; then
37
+ error_message " Failed to connect to MySQL service!"
38
+ exit 2
39
+ fi
35
40
bm_end " $( basename $0 ) "
36
41
exit 0
37
42
else
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
# Usage: ghe-es-snapshot
3
- # Emulates the remote GitHub ghe-service-ensure -mysql command. Tests use this
3
+ # Emulates the remote GitHub ghe-service-es -mysql command. Tests use this
4
4
# to assert that the command was executed.
5
5
set -e
6
6
echo " ghe-es-snapshot OK"
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Usage: ghe-service-wait-mysql
3
+ # Emulates the remote GitHub ghe-service-wait-mysql command. Tests use this
4
+ # to assert that the command was executed.
5
+ set -e
6
+ echo " ghe-service-wait-mysql OK"
You can’t perform that action at this time.
0 commit comments