diff options
author | smile21prc <xiwe@microsoft.com> | 2017-08-17 10:42:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-17 10:42:22 -0700 |
commit | b2b5fef27a4cb68571549f2e19660f39bd76467b (patch) | |
tree | eb413e3bcf0b97ac2efaef54a872479da96ea4bc /init-tools.sh | |
parent | 6e01319382dff1a08412602df207a7d38ed61526 (diff) | |
download | coreclr-b2b5fef27a4cb68571549f2e19660f39bd76467b.tar.gz coreclr-b2b5fef27a4cb68571549f2e19660f39bd76467b.tar.bz2 coreclr-b2b5fef27a4cb68571549f2e19660f39bd76467b.zip |
Enable RedHat 6 in coreclr master (#13315)
* Enable RedHat 6 in coreclr master
Enable RedHat 6 in coreclr master.
This is identical as the approved PR to enable RedHat 6 in coreclr
release/2.0.0:
https://github.com/dotnet/coreclr/pull/13301
* Correct Rid to match /src/.nuget/dirs.props
Correct Rid to match /src/.nuget/dirs.props
* Update dockertag and add logic to detect RHEL6 in init-tools.sh
Update dockertag and add logic to detect RHEL6 in init-tools.sh
* Port changes from Release/2.0.0 to fix coreclr RHEL 6 official runs.
Port changes from Release/2.0.0 to fix coreclr RHEL 6 official runs.
* Remove empty quotes.
Remove empty quotes.
Diffstat (limited to 'init-tools.sh')
-rwxr-xr-x | init-tools.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/init-tools.sh b/init-tools.sh index eb68c2e59e..4ec011d48d 100755 --- a/init-tools.sh +++ b/init-tools.sh @@ -37,6 +37,14 @@ if [ -z "$__DOTNET_PKG" ]; then Linux) __DOTNET_PKG=dotnet-dev-linux-x64 OS=Linux + + if [ -e /etc/redhat-release ]; then + redhatRelease=$(</etc/redhat-release) + if [[ $redhatRelease == "CentOS release 6."* || $redhatRelease == "Red Hat Enterprise Linux Server release 6."* ]]; then + __DOTNET_PKG=dotnet-dev-rhel.6-x64 + fi + fi + ;; *) |