From 191539b28b2ea9b91018fcea70aed3cad0843dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Wed, 25 Feb 2026 08:22:48 +0100 Subject: [PATCH] OpenProject: Various fixes (#12246) * Updates * Add jemalloc * Better engrish --- ct/openproject.sh | 7 ++++--- frontend/public/json/openproject.json | 9 +++++++-- install/openproject-install.sh | 28 +++++++++++++++++++++------ 3 files changed, 33 insertions(+), 11 deletions(-) diff --git a/ct/openproject.sh b/ct/openproject.sh index 877b2bad9..a2a6fa3ca 100644 --- a/ct/openproject.sh +++ b/ct/openproject.sh @@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}" var_ram="${var_ram:-4096}" var_disk="${var_disk:-8}" var_os="${var_os:-debian}" -var_version="${var_version:-12}" +var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" @@ -27,10 +27,11 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - msg_info "Updating ${APP}" + + msg_info "Updating OpenProject" $STD apt update $STD apt install --only-upgrade -y openproject - msg_ok "Updated ${APP}" + msg_ok "Updated OpenProject" msg_ok "Updated successfully!" exit } diff --git a/frontend/public/json/openproject.json b/frontend/public/json/openproject.json index d263d92ce..7e115953c 100644 --- a/frontend/public/json/openproject.json +++ b/frontend/public/json/openproject.json @@ -23,7 +23,7 @@ "ram": 4096, "hdd": 8, "os": "Debian", - "version": "12" + "version": "13" } } ], @@ -31,5 +31,10 @@ "username": "admin", "password": "admin" }, - "notes": [] + "notes": [ + { + "text": "If you want to update from v15.x to v17.x, please read `https://www.openproject.org/docs/installation-and-operations/operation/upgrading/#major-upgrades` before doing so.", + "type": "warning" + } + ] } diff --git a/install/openproject-install.sh b/install/openproject-install.sh index 577ec8b6f..6fd65fd03 100644 --- a/install/openproject-install.sh +++ b/install/openproject-install.sh @@ -14,19 +14,30 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt install -y apt-transport-https +$STD apt install -y \ + apt-transport-https \ + build-essential \ + autoconf msg_ok "Installed Dependencies" PG_VERSION="17" setup_postgresql PG_DB_NAME="openproject" PG_DB_USER="openproject" setup_postgresql_db API_KEY=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13) echo "OpenProject API Key: $API_KEY" >>~/openproject.creds +fetch_and_deploy_gh_release "jemalloc" "jemalloc/jemalloc" "tarball" -msg_info "Setting up OpenProject Repository" -curl -fsSL "https://dl.packager.io/srv/opf/openproject/key" | gpg --dearmor >/etc/apt/trusted.gpg.d/packager-io.gpg -curl -fsSL "https://dl.packager.io/srv/opf/openproject/stable/15/installer/debian/12.repo" -o "/etc/apt/sources.list.d/openproject.list" -$STD apt update -msg_ok "Setup OpenProject Repository" +msg_info "Compiling jemalloc (Patience)" +cd /opt/jemalloc +$STD ./autogen.sh +$STD make +$STD make install +msg_ok "Compiled jemalloc" + +setup_deb822_repo \ + "openproject" \ + "https://packages.openproject.com/srv/deb/opf/openproject/gpg-key.gpg" \ + "https://packages.openproject.com/srv/deb/opf/openproject/stable/17/debian/" \ + "12" msg_info "Installing OpenProject" $STD apt install -y openproject @@ -60,6 +71,11 @@ openproject/admin_email admin@example.net openproject/default_language en EOF $STD sudo openproject configure +systemctl stop openproject-web-1 +if ! grep -qF 'Environment=LD_PRELOAD=/usr/local/lib/libjemalloc.so.2' /etc/systemd/system/openproject-web-1.service; then + sed -i '/^\[Service\]/a Environment=LD_PRELOAD=/usr/local/lib/libjemalloc.so.2' /etc/systemd/system/openproject-web-1.service +fi +systemctl start openproject-web-1 msg_ok "Configured OpenProject" motd_ssh