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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
#!/bin/bash
set -e
. ${INSTALLER_DIR}/wizard
CLI="${APP_NAME}"
OSFAMILY="$(wiz_fact osfamily)"
OSVERSION="$(wiz_fact osversion)"
edition="$(wiz_get "openproject/edition")"
tmpdir="$(mktemp -d)"
cleanup() {
rm -rf "$tmpdir"
}
trap cleanup INT TERM EXIT
if [ "$edition" = "bim" ]; then
${CLI} config:set OPENPROJECT_EDITION="$edition"
case "$OSFAMILY" in
"debian")
case "$OSVERSION" in
"22.04")
# Ubuntu 22.04 comes with its own package sources for dotnet6 (see https://learn.microsoft.com/en-us/dotnet/core/install/linux-package-mixup?pivots=os-linux-redhat#whats-going-on)
# Therefore we should use those and not the ones from packages.microsoft.com, as otherwise the assumption for
# setting the DOTNET_ROOT later fails, leading to bugs like https://community.openproject.org/wp/50172.
;;
"20.04" | "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/${OSVERSION}/prod.list
apt-get update -qq
;;
"12" | "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/${OSVERSION}/prod.list
apt-get update -qq
;;
esac
apt-get install -y dotnet-runtime-6.0
;;
"redhat")
case "$(wiz_fact "osversion")" in
9*)
dnf install -y dotnet-runtime-6.0
;;
8*)
dnf install -y dotnet-runtime-6.0
;;
esac
;;
esac
if [ "$OSFAMILY" = "debian" ] && [ "$OSVERSION" = "22.04" ]; then
${CLI} config:set DOTNET_ROOT=$(dirname $(realpath $(which dotnet)))
fi
cd $tmpdir
if ! ${CLI} run which COLLADA2GLTF &>/dev/null ; then
echo "Installing COLLADA2GLTF..."
cp "$APP_HOME/vendor/bim/COLLADA2GLTF-v2.1.5-linux.zip" .
unzip -qq COLLADA2GLTF-v2.1.5-linux.zip
mv COLLADA2GLTF-bin "$APP_HOME/bin/COLLADA2GLTF"
fi
if ! ${CLI} run which IfcConvert &>/dev/null ||
! echo "2d48d5df36371fc5920a71f0d74b29449b0b166a $(${CLI} run which IfcConvert)" | sha1sum -c - ; then
echo "Installing IfcConvert..."
cp "$APP_HOME/vendor/bim/IfcConvert-v0.7.11-fea8e3a-linux64.zip" .
unzip -qq IfcConvert-v0.7.11-fea8e3a-linux64.zip
mv IfcConvert "$APP_HOME/bin/IfcConvert"
fi
if ! ${CLI} run which xeokit-metadata &>/dev/null ||
! echo "f960fb98106280223a664d176daaeb7ca7904e6f $(${CLI} run which xeokit-metadata)" | sha1sum -c - ; then
echo "Installing xeokit-metadata..."
cp "$APP_HOME/vendor/bim/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"
ln -fs "$APP_HOME/vendor/xeokit-metadata/xeokit-metadata" "$APP_HOME/bin/xeokit-metadata"
fi
rm -rf "$tmpdir"
else
${CLI} config:unset OPENPROJECT_EDITION
fi