From c520aacf0de89b547622bf99144aff78c580667e Mon Sep 17 00:00:00 2001 From: aaron Date: Mon, 5 Aug 2024 04:47:20 -0700 Subject: [PATCH] Add install/emqx-install.sh --- install/emqx-install.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 install/emqx-install.sh diff --git a/install/emqx-install.sh b/install/emqx-install.sh new file mode 100644 index 0000000..dae18a0 --- /dev/null +++ b/install/emqx-install.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash + +# Copyright (c) 2024 aaron +# Author: aaron +# License: none +# https://gitlab.peanutsmediaserver.com/aaron/pve-scripts/raw/branch/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 +msg_ok "Installed Dependencies Bitches" + +msg_info "Installing Apt-Cacher NG" +DEBIAN_FRONTEND=noninteractive $STD apt-get -o Dpkg::Options::="--force-confold" install -y apt-cacher-ng +sed -i 's/# PassThroughPattern: .* # this would allow CONNECT to everything/PassThroughPattern: .*/' /etc/apt-cacher-ng/acng.conf +systemctl enable -q --now apt-cacher-ng +msg_ok "Installed Apt-Cacher NG" + +motd_ssh +customize + +msg_info "Cleaning up" +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned" \ No newline at end of file