|
|
|
@ -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" |
|
|
|
|