We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58aadea commit a4fe8f8Copy full SHA for a4fe8f8
share/github-backup-utils/ghe-restore-mysql
@@ -32,6 +32,11 @@ snapshot_dir="$GHE_DATA_DIR/$GHE_RESTORE_SNAPSHOT"
32
if is_external_database_snapshot; then
33
if [ -n "$EXTERNAL_DATABASE_RESTORE_SCRIPT" ]; then
34
$EXTERNAL_DATABASE_RESTORE_SCRIPT
35
+ # ensure that haproxy and mysql are accepting connections before continuining
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
40
bm_end "$(basename $0)"
41
exit 0
42
else
0 commit comments