Skip to content

Commit e09bfa3

Browse files
committed
Use the settings file in the snapshot to determine external db
1 parent d059b2a commit e09bfa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/github-backup-utils/ghe-restore-mysql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ghe_remote_version_required "$GHE_HOSTNAME"
2929
snapshot_dir="$GHE_DATA_DIR/$GHE_RESTORE_SNAPSHOT"
3030

3131
# When customer uses external database, we rely on customer to implement the restore process
32-
if is_service_external 'mysql'; then
32+
if is_service_external 'mysql' "$snapshot_dir/settings.json"; then
3333
echo "Restore external MySQL database using customer-provided script ..."
3434
cat $snapshot_dir/mysql.sql.gz | $EXTERNAL_DATABASE_RESTORE_SCRIPT
3535
else

0 commit comments

Comments
 (0)