Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix dotnet path for xeokit-metadata

Oliver Günthere218bc5e260b
diff --git a/packaging/addons/openproject-edition/bin/preinstall b/packaging/addons/openproject-edition/bin/preinstall
index 717c3f04277..eac179e7df7 100755
--- a/packaging/addons/openproject-edition/bin/preinstall
+++ b/packaging/addons/openproject-edition/bin/preinstall
@@ -4,6 +4,8 @@ set -e
. ${INSTALLER_DIR}/wizard
CLI="${APP_NAME}"
+OSFAMILY="$(wiz_fact osfamily)"
+OSVERSION="$(wiz_fact osversion)"
edition="$(wiz_get "openproject/edition")"
tmpdir="$(mktemp -d)"
@@ -16,9 +18,9 @@ trap cleanup INT TERM EXIT
if [ "$edition" = "bim" ]; then
${CLI} config:set OPENPROJECT_EDITION="$edition"
- case "$(wiz_fact "osfamily")" in
+ case "$OSFAMILY" in
"debian")
- case "$(wiz_fact "osversion")" in
+ case "$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
@@ -51,6 +53,10 @@ if [ "$edition" = "bim" ]; then
;;
esac
+ if [ "$OSFAMILY" = "debian" ] && [ "$OSVERSION" = "22.04" ]; then
+ ${CLI} config:set DOTNET_ROOT=$(dirname $(realpath $(which dotnet)))
+ fi
+
cd $tmpdir
if [ "$(${CLI} run gltf2xkt --version 2>&1)" != "1.3.1" ] ; then