From 443d70888695f3f7b28ea388b26c56b32ac81031 Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Thu, 9 Feb 2023 20:31:04 +0100 Subject: [PATCH] Add ecodms container --- src/ecodms/constants-service.conf | 26 ++++++++++++++++++++++++++ src/ecodms/install-service.sh | 21 +++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 src/ecodms/constants-service.conf create mode 100644 src/ecodms/install-service.sh diff --git a/src/ecodms/constants-service.conf b/src/ecodms/constants-service.conf new file mode 100644 index 0000000..1dac056 --- /dev/null +++ b/src/ecodms/constants-service.conf @@ -0,0 +1,26 @@ +#!/bin/bash + +# Authors: +# (C) 2021 Idea an concept by Christian Zengel +# (C) 2021 Script design and prototype by Markus Helmke +# (C) 2021 Script rework and documentation by Thorsten Spille + +# This file contains the project constants on service level + +# Debian Version, which will be installed +LXC_TEMPLATE_VERSION="debian-11-standard" + +# Create sharefs mountpoint +LXC_MP="0" + +# Create unprivileged container +LXC_UNPRIVILEGED="1" + +# enable nesting feature +LXC_NESTING="1" + +# set ecodms release version +ECODMS_RELEASE=ecodms_220864 + +# service dependent meta tags +SERVICE_TAGS="java,postgresql" \ No newline at end of file diff --git a/src/ecodms/install-service.sh b/src/ecodms/install-service.sh new file mode 100644 index 0000000..9eaf184 --- /dev/null +++ b/src/ecodms/install-service.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +set -euo pipefail + +# Authors: +# (C) 2021 Idea an concept by Christian Zengel +# (C) 2021 Script design and prototype by Markus Helmke +# (C) 2021 Script rework and documentation by Thorsten Spille + +source /root/functions.sh +source /root/zamba.conf +source /root/constants-service.conf + +echo "ecodmsserver ecodmsserver/language string german" | debconf-set-selections +echo "ecodmsserver ecodmsserver/license string true" | debconf-set-selections + +echo -e "deb http://www.ecodms.de/${ECODMS_RELEASE}/$(lsb_release -cs) /" > /etc/apt/sources.list.d/ecodms.list +wget -qO- http://www.ecodms.de/gpg/ecodms.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/ecodms.gpg + +apt update +DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq install ecodmsserver \ No newline at end of file