File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
packages/mongodb-memory-server-core/src/util Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -264,6 +264,7 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts {
264264 * Get the version string for Red Hat Enterprise Linux
265265 * @param os LinuxOS Object
266266 */
267+ // TODO: add tests for RHEL
267268 getRhelVersionString ( os : LinuxOS ) : string {
268269 let name = 'rhel' ;
269270 const { release } = os ;
@@ -279,6 +280,12 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts {
279280 name += '55' ;
280281 }
281282 }
283+ // fallback
284+ if ( name === 'rhel' ) {
285+ log ( 'getRhelVersionString: falling back to "70"' ) ;
286+ // fallback to "70", because that is what currently is supporting 3.6 to 5.0 and should work with many
287+ name += '70' ;
288+ }
282289
283290 return name ;
284291 }
You can’t perform that action at this time.
0 commit comments