Update openproject-edition addon to use dotnet runtime 6.0 (#11388)

bug/44924-error-in-souce-string-for-team-planner
Cyril Rohr 2 years ago committed by GitHub
parent 9a04ef53f3
commit 5d5b01445b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      packaging/addons/openproject-edition/bin/configure
  2. 31
      packaging/addons/openproject-edition/bin/preinstall

@ -8,18 +8,24 @@ supported_distribution() {
case "$(wiz_fact "osfamily")" in
"debian")
case $(wiz_fact "osversion") in
"22.04")
return 0
;;
"20.04")
return 0
;;
"18.04")
return 0
;;
"10")
"12")
return 0
;;
"11")
return 0
;;
"10")
return 0
;;
esac
;;
"redhat")

@ -16,32 +16,36 @@ trap cleanup INT TERM EXIT
if [ "$edition" = "bim" ]; then
${CLI} config:set OPENPROJECT_EDITION="$edition"
case "$(wiz_fact "osfamily")" in
"debian")
case "$(wiz_fact "osversion")" in
"20.04")
case "$(wiz_fact "osfamily")" in
"debian")
case "$(wiz_fact "osversion")" in
"20.04")
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
wget -qO /etc/apt/sources.list.d/microsoft.list https://packages.microsoft.com/config/ubuntu/20.04/prod.list
apt-get update -qq
apt-get install -y dotnet-runtime-3.1
;;
;;
"18.04")
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
wget -qO /etc/apt/sources.list.d/microsoft.list https://packages.microsoft.com/config/ubuntu/18.04/prod.list
apt-get update -qq
apt-get install -y dotnet-runtime-3.1
;;
;;
"11")
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
wget -qO /etc/apt/sources.list.d/microsoft.list https://packages.microsoft.com/config/debian/11/prod.list
apt-get update -qq
;;
"10")
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
wget -qO /etc/apt/sources.list.d/microsoft.list https://packages.microsoft.com/config/debian/10/prod.list
apt-get update -qq
apt-get install -y dotnet-runtime-3.1
esac
;;
esac
apt-get install -y dotnet-runtime-6.0
;;
"redhat")
case "$(wiz_fact "osversion")" in
8*)
dnf install -y dotnet-runtime-3.1
dnf install -y dotnet-runtime-6.0
;;
esac
;;
@ -69,9 +73,10 @@ if [ "$edition" = "bim" ]; then
mv IfcConvert "$APP_HOME/bin/IfcConvert"
fi
if ! ${CLI} run which xeokit-metadata &>/dev/null ; then
if ! ${CLI} run which xeokit-metadata &>/dev/null ||
! echo "f960fb98106280223a664d176daaeb7ca7904e6f $(${CLI} run which xeokit-metadata)" | sha1sum -c - ; then
echo "Fetching and installing xeokit-metadata..."
wget --quiet https://github.com/bimspot/xeokit-metadata/releases/download/1.0.0/xeokit-metadata-linux-x64.tar.gz
wget --quiet https://github.com/bimspot/xeokit-metadata/releases/download/1.0.1/xeokit-metadata-linux-x64.tar.gz
tar -zxf xeokit-metadata-linux-x64.tar.gz
chmod +x xeokit-metadata-linux-x64/xeokit-metadata
cp -r xeokit-metadata-linux-x64/ "$APP_HOME/vendor/xeokit-metadata"

Loading…
Cancel
Save