From 14798991b47ff444bcc4e00c45150ccff86cfe1b Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 23 May 2024 21:39:30 -0400 Subject: [PATCH] Create bunkerweb-install.sh --- install/bunkerweb-install.sh | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 install/bunkerweb-install.sh diff --git a/install/bunkerweb-install.sh b/install/bunkerweb-install.sh new file mode 100644 index 00000000..ac8595da --- /dev/null +++ b/install/bunkerweb-install.sh @@ -0,0 +1,46 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2024 tteck +# 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 +$STD apt-get install -y gnupg2 +$STD apt-get install -y ca-certificates +$STD apt-get install -y lsb-release +$STD apt-get install -y debian-archive-keyring +msg_ok "Installed Dependencies" + +msg_info "Installing Nginx v1.20.0" +wget -qO- https://nginx.org/keys/nginx_signing.key | gpg --dearmor >/usr/share/keyrings/nginx-archive-keyring.gpg +echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://nginx.org/packages/debian `lsb_release -cs` nginx" >/etc/apt/sources.list.d/nginx.list +$STD apt-get update +$STD apt-get install -y nginx=1.24.0-1~$(lsb_release -cs) +msg_ok "Installed Nginx v1.20.0" + +msg_info "Installing BunkerWeb v1.5.7" +export UI_WIZARD=1 +$STD curl -sSL https://packagecloud.io/install/repositories/bunkerity/bunkerweb/script.deb.sh | bash +$STD apt-get install -y bunkerweb=1.5.7 +#$STD apt-mark hold nginx bunkerweb +msg_ok "Installed BunkerWeb v1.5.7" + +motd_ssh +customize + +msg_info "Cleaning up" +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned"