You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by jb...@apache.org on 2021/08/18 22:58:16 UTC

[geode-native] 02/02: GEODE-9356: Fixes dotnet install.

This is an automated email from the ASF dual-hosted git repository.

jbarrett pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git

commit fdf367e95a727c112567130ec44f3bb9e51bd9ce
Author: Jacob Barrett <jb...@pivotal.io>
AuthorDate: Wed Aug 18 15:30:26 2021 -0700

    GEODE-9356: Fixes dotnet install.
---
 packer/linux/install-dotnet.sh | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/packer/linux/install-dotnet.sh b/packer/linux/install-dotnet.sh
index 365d513..2992bc0 100644
--- a/packer/linux/install-dotnet.sh
+++ b/packer/linux/install-dotnet.sh
@@ -17,10 +17,8 @@
 
 set -x -e -o pipefail
 
-tmp=$(mktemp)
+curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin \
+    --channel 3.1 \
+    --install-dir /usr/lib/dotnet
 
-curl -o ${tmp} -L https://dot.net/v1/dotnet-install.sh
-
-bash ${tmp} --channel 3.1
-
-rm -f ${tmp}
+ln -s /usr/lib/dotnet/dotnet /usr/bin/dotnet