2023-03-23 00:48:20 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2024-01-01 17:13:05 +00:00
|
|
|
# Copyright (c) 2021-2024 tteck
|
2023-03-23 00:48:20 +00:00
|
|
|
# Author: tteck (tteckster)
|
|
|
|
# License: MIT
|
|
|
|
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
|
|
|
|
|
|
|
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
|
|
|
|
color
|
|
|
|
verb_ip6
|
|
|
|
catch_errors
|
|
|
|
setting_up_container
|
|
|
|
network_check
|
|
|
|
update_os
|
|
|
|
|
|
|
|
msg_info "Installing Dependencies"
|
|
|
|
$STD apt-get install -y curl
|
|
|
|
$STD apt-get install -y sudo
|
|
|
|
$STD apt-get install -y mc
|
2023-05-07 14:39:56 +00:00
|
|
|
$STD apt-get install -y apt-transport-https
|
2023-11-26 12:30:19 +00:00
|
|
|
$STD apt-get install -y gnupg
|
2023-03-23 00:48:20 +00:00
|
|
|
msg_ok "Installed Dependencies"
|
|
|
|
|
2024-03-20 02:08:01 +00:00
|
|
|
msg_info "Installing Eclipse Temurin JRE"
|
2023-11-26 12:43:37 +00:00
|
|
|
wget -qO- https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor >/etc/apt/trusted.gpg.d/adoptium.gpg
|
2024-03-20 02:08:01 +00:00
|
|
|
echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/adoptium.gpg] https://packages.adoptium.net/artifactory/deb bookworm main" >/etc/apt/sources.list.d/adoptium.list
|
2023-11-26 12:30:19 +00:00
|
|
|
$STD apt-get update
|
2024-02-11 14:23:03 +00:00
|
|
|
$STD apt-get install -y temurin-17-jre
|
2024-03-20 02:08:01 +00:00
|
|
|
msg_ok "Installed Eclipse Temurin JRE"
|
2023-03-23 00:48:20 +00:00
|
|
|
|
2023-05-07 14:39:56 +00:00
|
|
|
msg_info "Installing MongoDB"
|
2024-03-20 02:08:01 +00:00
|
|
|
wget -qO- https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor >/usr/share/keyrings/mongodb-server-7.0.gpg
|
|
|
|
echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" >/etc/apt/sources.list.d/mongodb-org-7.0.list
|
2023-11-26 12:30:19 +00:00
|
|
|
$STD apt-get update
|
|
|
|
$STD apt-get install -y mongodb-org
|
2023-05-07 14:39:56 +00:00
|
|
|
msg_ok "Installed MongoDB"
|
|
|
|
|
2024-03-20 18:55:27 +00:00
|
|
|
msg_info "Installing UniFi Network Server"
|
2023-05-07 14:39:56 +00:00
|
|
|
wget -qO /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg
|
2024-03-20 02:08:01 +00:00
|
|
|
echo "deb [ arch=amd64 signed-by=/etc/apt/trusted.gpg.d/unifi-repo.gpg] https://www.ui.com/downloads/unifi/debian stable ubiquiti" >/etc/apt/sources.list.d/100-ubnt-unifi.list
|
2023-05-07 14:39:56 +00:00
|
|
|
$STD apt-get update
|
|
|
|
$STD apt-get install -y unifi
|
2024-03-20 18:55:27 +00:00
|
|
|
msg_ok "Installed UniFi Network Server"
|
2023-03-23 00:48:20 +00:00
|
|
|
|
|
|
|
motd_ssh
|
2023-05-15 11:39:30 +00:00
|
|
|
customize
|
2023-03-23 00:48:20 +00:00
|
|
|
|
|
|
|
msg_info "Cleaning up"
|
2024-05-02 17:26:16 +00:00
|
|
|
$STD apt-get -y autoremove
|
|
|
|
$STD apt-get -y autoclean
|
2023-03-23 00:48:20 +00:00
|
|
|
msg_ok "Cleaned"
|