mirror of
				https://github.com/bashclub/zamba-lxc-toolbox.git
				synced 2025-10-29 22:52:26 +01:00 
			
		
		
		
	Add new service TP-Link Omada Controller
This commit is contained in:
		
							
								
								
									
										26
									
								
								src/omada/constants-service.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								src/omada/constants-service.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| # Authors: | ||||
| # (C) 2021 Idea an concept by Christian Zengel <christian@sysops.de> | ||||
| # (C) 2021 Script design and prototype by Markus Helmke <m.helmke@nettwarker.de> | ||||
| # (C) 2021 Script rework and documentation by Thorsten Spille <thorsten@spille-edv.de> | ||||
|  | ||||
| # 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" | ||||
|  | ||||
| # Sets the minimum amount of RAM the service needs for operation | ||||
| LXC_MEM_MIN=2048 | ||||
|  | ||||
| # service dependent meta tags | ||||
| SERVICE_TAGS="mongodb-server,java" | ||||
							
								
								
									
										29
									
								
								src/omada/install-service.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								src/omada/install-service.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| set -euo pipefail | ||||
|  | ||||
| # Authors: | ||||
| # (C) 2021 Idea an concept by Christian Zengel <christian@sysops.de> | ||||
| # (C) 2021 Script design and prototype by Markus Helmke <m.helmke@nettwarker.de> | ||||
| # (C) 2021 Script rework and documentation by Thorsten Spille <thorsten@spille-edv.de> | ||||
|  | ||||
| source /root/functions.sh | ||||
| source /root/zamba.conf | ||||
| source /root/constants-service.conf | ||||
|  | ||||
| wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - | ||||
| add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ | ||||
|  | ||||
| wget -O /etc/apt/trusted.gpg.d/mongodb-4.4.asc https://www.mongodb.org/static/pgp/server-4.4.asc | ||||
|  | ||||
| echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" > /etc/apt/sources.list.d/mongodb.list | ||||
|  | ||||
| apt update | ||||
|  | ||||
| DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq adoptopenjdk-8-hotspot jsvc mongodb-org | ||||
|  | ||||
| DL=$(wget -O - -q  https://www.tp-link.com/de/support/download/omada-software-controller/ 2>/dev/null | grep Download-Detail-Software_Omada-Software-Controller | grep "Linux_x64.deb" | head -1 | cut -d'"' -f6) | ||||
|  | ||||
| wget -O /tmp/omada.deb -q $DL | ||||
|  | ||||
| DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq /tmp/omada.deb | ||||
		Reference in New Issue
	
	Block a user