mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-12-07 00:05:12 +01:00
v1.6.19 no longer ships misc/install-bunkerweb.sh in the repository, so every install since that release failed with a 404. The installer and its sha256 are release assets (since 1.6.18); the checksum is verified.
43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2021-2026 tteck
|
|
# Author: tteck (tteckster)
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://www.bunkerweb.io/
|
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
color
|
|
verb_ip6
|
|
catch_errors
|
|
setting_up_container
|
|
network_check
|
|
update_os
|
|
|
|
msg_info "Installing Dependencies"
|
|
$STD apt install -y \
|
|
apt-transport-https \
|
|
lsb-release
|
|
msg_ok "Installed Dependencies"
|
|
|
|
RELEASE=$(get_latest_github_release "bunkerity/bunkerweb")
|
|
INSTALLER_URL="https://github.com/bunkerity/bunkerweb/releases/download/v${RELEASE}/install-bunkerweb.sh"
|
|
confirm_external_installer "install-bunkerweb.sh" "$INSTALLER_URL"
|
|
msg_info "Installing BunkerWeb (Patience)"
|
|
curl -fsSL -o install-bunkerweb.sh "$INSTALLER_URL"
|
|
curl -fsSL -o install-bunkerweb.sh.sha256 "${INSTALLER_URL}.sha256"
|
|
$STD sha256sum -c install-bunkerweb.sh.sha256
|
|
chmod +x install-bunkerweb.sh
|
|
$STD ./install-bunkerweb.sh --yes
|
|
$STD apt-mark unhold bunkerweb nginx
|
|
cat <<EOF >/etc/apt/preferences.d/bunkerweb
|
|
Package: bunkerweb
|
|
Pin: version ${RELEASE}
|
|
Pin-Priority: 1001
|
|
EOF
|
|
echo "${RELEASE}" >~/.bunkerweb
|
|
msg_ok "Installed BunkerWeb"
|
|
|
|
motd_ssh
|
|
customize
|
|
cleanup_lxc
|