From 6a18c29ee4366751ed6261d97f5dd03cf318a73f Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Fri, 21 Mar 2025 13:33:18 +0100 Subject: [PATCH] Initial: OpenProject --- ct/openproject.sh | 39 ++++++++++++++++++++++++++++++ install/openproject-install.sh | 43 ++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 ct/openproject.sh create mode 100644 install/openproject-install.sh diff --git a/ct/openproject.sh b/ct/openproject.sh new file mode 100644 index 0000000..ac9765d --- /dev/null +++ b/ct/openproject.sh @@ -0,0 +1,39 @@ +#!/usr/bin/env bash +source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) +# Copyright (c) 2021-2025 tteck +# Author: michelroegl-brunner +# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE +# Source: https://www.debian.org/ + +APP="OpenProject" +var_tags="notes" +var_cpu="1" +var_ram="512" +var_disk="2" +var_os="debian" +var_version="12" +var_unprivileged="1" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + if [[ ! -d /var ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + msg_error "No Update Function Found!" + exit +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" diff --git a/install/openproject-install.sh b/install/openproject-install.sh new file mode 100644 index 0000000..0ed1451 --- /dev/null +++ b/install/openproject-install.sh @@ -0,0 +1,43 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2025 tteck +# Author: michelroegl-brunner +# License: MIT +# https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os +install_core_deps + +msg_info "Installing Dependencies" +$STD apt-get install -y \ + sudo \ + mc \ + curl \ + apt-transport-https \ + ca-certificates \ + gpg +msg_ok "Installed Dependencies" + +msg_info "Adding Repository" +wget -qO- https://dl.packager.io/srv/opf/openproject/key | gpg --dearmor >/etc/apt/trusted.gpg.d/packager-io.gpg +wget -O /etc/apt/sources.list.d/openproject.list https://dl.packager.io/srv/opf/openproject/stable/15/installer/debian/12.repo +msg_ok "Added Repository" + +msg_info "Installing OpenProject" +$STD apt-get update +$STD apt-get install -y openproject +msg_ok "Installed OpenProject" + +motd_ssh +customize + +msg_info "Cleaning up" +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned"