diff --git a/CHANGELOG.md b/CHANGELOG.md index ca9f10438..8d29cea1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,14 @@ - All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment. + +## 2024-06-30 + +### Changed + +- **All Scripts** + - Requires Proxmox Virtual Environment version 8.1 or later. + ## 2024-06-27 ### Changed diff --git a/ct/alpine-nextcloud.sh b/ct/alpine-nextcloud.sh index 104a41446..f82469f90 100644 --- a/ct/alpine-nextcloud.sh +++ b/ct/alpine-nextcloud.sh @@ -60,12 +60,10 @@ function update_script() { if ! apk -e info newt >/dev/null 2>&1; then apk add -q newt fi - RELEASE=$(curl -s https://api.github.com/repos/nextcloud/server/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') while true; do CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 3 \ - "1" "Update Nextcloud to $RELEASE" OFF \ - "2" "Nextcloud Login Credentials" ON \ - "3" "Renew Self-signed Certificate" OFF \ + "1" "Nextcloud Login Credentials" ON \ + "2" "Renew Self-signed Certificate" OFF \ 3>&1 1>&2 2>&3) exit_status=$? if [ $exit_status == 1 ]; then @@ -75,22 +73,10 @@ function update_script() { header_info case $CHOICE in 1) - apk update && apk upgrade - if ! apk -e info php82-sodium >/dev/null 2>&1; then - apk add -q php82-sodium - fi - if ! apk -e info php82-bz2 >/dev/null 2>&1; then - apk add -q php82-bz2 - fi - su nextcloud -s /bin/sh -c 'php82 /usr/share/webapps/nextcloud/occ upgrade' - su nextcloud -s /bin/sh -c 'php82 /usr/share/webapps/nextcloud/occ db:add-missing-indices' - exit - ;; - 2) cat nextcloud.creds exit ;; - 3) + 2) openssl req -x509 -nodes -days 365 -newkey rsa:4096 -keyout /etc/ssl/private/nextcloud-selfsigned.key -out /etc/ssl/certs/nextcloud-selfsigned.crt -subj "/C=US/O=Nextcloud/OU=Domain Control Validated/CN=nextcloud.local" > /dev/null 2>&1 rc-service nginx restart exit diff --git a/ct/create_lxc.sh b/ct/create_lxc.sh index 118a5302a..6da46a871 100644 --- a/ct/create_lxc.sh +++ b/ct/create_lxc.sh @@ -158,7 +158,7 @@ if [ $PCT_OSTYPE = debian ]; then TEMPLATE_VARIENT=bookworm fi elif [ $PCT_OSTYPE = alpine ]; then - TEMPLATE_VARIENT=3.20 + TEMPLATE_VARIENT=3.19 else if [ $PCT_OSVERSION = 20.04 ]; then TEMPLATE_VARIENT=focal diff --git a/install/nginxproxymanager-install.sh b/install/nginxproxymanager-install.sh index 10dacec1d..1cdebd2d0 100644 --- a/install/nginxproxymanager-install.sh +++ b/install/nginxproxymanager-install.sh @@ -43,6 +43,7 @@ $STD apt-get install -y \ python3-certbot-dns-cloudflare rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED $STD python3 -m venv /opt/certbot/ +rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED msg_ok "Installed Python Dependencies" VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)" diff --git a/misc/build.func b/misc/build.func index 259d1e3c9..5837f8b68 100644 --- a/misc/build.func +++ b/misc/build.func @@ -95,16 +95,13 @@ root_check() { # This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported. pve_check() { - if [ $(pveversion | grep "pve-manager/8" | wc -l) -ne 1 ]; then - whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox --title "Proxmox VE 7 Detected" "You are currently using Proxmox VE 7 (EOL 2024-07), refrain from creating Debian 12 LXCs. \nDefault distribution for $APP LXC is ${var_os} ${var_version}" 10 60 - fi - if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then + if ! pveversion | grep -Eq "pve-manager/8.[1-3]"; then msg_error "This version of Proxmox Virtual Environment is not supported" - echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." + echo -e "Requires Proxmox Virtual Environment Version 8.1 or later." echo -e "Exiting..." sleep 2 exit - fi +fi } # This function checks if the script is running through SSH and prompts the user to confirm if they want to proceed or exit. @@ -617,10 +614,10 @@ EOF if [ "$var_os" == "alpine" ]; then sleep 3 pct exec "$CTID" -- /bin/sh -c 'cat </etc/apk/repositories -#http://dl-cdn.alpinelinux.org/alpine/latest-stable/main -#http://dl-cdn.alpinelinux.org/alpine/latest-stable/community -http://dl-cdn.alpinelinux.org/alpine/v3.20/main -http://dl-cdn.alpinelinux.org/alpine/v3.20/community +http://dl-cdn.alpinelinux.org/alpine/latest-stable/main +http://dl-cdn.alpinelinux.org/alpine/latest-stable/community +#http://dl-cdn.alpinelinux.org/alpine/v3.19/main +#http://dl-cdn.alpinelinux.org/alpine/v3.19/community EOF' pct exec "$CTID" -- ash -c "apk add bash >/dev/null" fi diff --git a/vm/debian-vm.sh b/vm/debian-vm.sh index 11e2a2835..793d954af 100644 --- a/vm/debian-vm.sh +++ b/vm/debian-vm.sh @@ -92,13 +92,13 @@ function check_root() { } function pve_check() { - if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then + if ! pveversion | grep -Eq "pve-manager/8.[1-3]"; then msg_error "This version of Proxmox Virtual Environment is not supported" - echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." + echo -e "Requires Proxmox Virtual Environment Version 8.1 or later." echo -e "Exiting..." sleep 2 exit - fi +fi } function ssh_check() { @@ -360,7 +360,7 @@ fi msg_ok "Using ${CL}${BL}$STORAGE${CL} ${GN}for Storage Location." msg_ok "Virtual Machine ID is ${CL}${BL}$VMID${CL}." msg_info "Retrieving the URL for the Debian 12 Qcow2 Disk Image" -URL=https://cloud.debian.org/images/cloud/bookworm/20231228-1609/debian-12-nocloud-arm64-20231228-1609.qcow2 +URL=https://cloud.debian.org/images/cloud/bookworm/20240507-1740/debian-12-nocloud-arm64-20240507-1740.qcow2 sleep 2 msg_ok "${CL}${BL}${URL}${CL}" wget -q --show-progress $URL diff --git a/vm/haos-vm.sh b/vm/haos-vm.sh index 704a93088..55d261e49 100644 --- a/vm/haos-vm.sh +++ b/vm/haos-vm.sh @@ -115,13 +115,13 @@ function check_root() { } function pve_check() { - if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then + if ! pveversion | grep -Eq "pve-manager/8.[1-3]"; then msg_error "This version of Proxmox Virtual Environment is not supported" - echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." + echo -e "Requires Proxmox Virtual Environment Version 8.1 or later." echo -e "Exiting..." sleep 2 exit - fi +fi } function arch_check() { diff --git a/vm/mikrotik-routeros.sh b/vm/mikrotik-routeros.sh index af4fd0c21..f9e05f333 100644 --- a/vm/mikrotik-routeros.sh +++ b/vm/mikrotik-routeros.sh @@ -62,11 +62,11 @@ function cleanup() { } TEMP_DIR=$(mktemp -d) pushd $TEMP_DIR >/dev/null - if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then - echo "⚠ This version of Proxmox Virtual Environment is not supported" - echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." - echo "Exiting..." - sleep 3 +if ! pveversion | grep -Eq "pve-manager/8.[1-3]"; then + msg_error "This version of Proxmox Virtual Environment is not supported" + echo -e "Requires Proxmox Virtual Environment Version 8.1 or later." + echo -e "Exiting..." + sleep 2 exit fi if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "Mikrotik RouterOS CHR VM" --yesno "This will create a New Mikrotik RouterOS CHR VM. Proceed?" 10 58); then diff --git a/vm/nextcloud-vm.sh b/vm/nextcloud-vm.sh index 23cc56062..1e50c37dc 100644 --- a/vm/nextcloud-vm.sh +++ b/vm/nextcloud-vm.sh @@ -91,13 +91,13 @@ function check_root() { } function pve_check() { - if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then + if ! pveversion | grep -Eq "pve-manager/8.[1-3]"; then msg_error "This version of Proxmox Virtual Environment is not supported" - echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." + echo -e "Requires Proxmox Virtual Environment Version 8.1 or later." echo -e "Exiting..." sleep 2 exit - fi +fi } function arch_check() { diff --git a/vm/openwrt.sh b/vm/openwrt.sh index aa03ea078..c53115227 100644 --- a/vm/openwrt.sh +++ b/vm/openwrt.sh @@ -157,13 +157,13 @@ function msg_error() { } function pve_check() { - if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then - echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" - echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." + if ! pveversion | grep -Eq "pve-manager/8.[1-3]"; then + msg_error "This version of Proxmox Virtual Environment is not supported" + echo -e "Requires Proxmox Virtual Environment Version 8.1 or later." echo -e "Exiting..." sleep 2 exit - fi +fi } function ssh_check() { diff --git a/vm/owncloud-vm.sh b/vm/owncloud-vm.sh index 006a46499..871f5eeba 100644 --- a/vm/owncloud-vm.sh +++ b/vm/owncloud-vm.sh @@ -91,13 +91,13 @@ function check_root() { } function pve_check() { - if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then + if ! pveversion | grep -Eq "pve-manager/8.[1-3]"; then msg_error "This version of Proxmox Virtual Environment is not supported" - echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." + echo -e "Requires Proxmox Virtual Environment Version 8.1 or later." echo -e "Exiting..." sleep 2 exit - fi +fi } function arch_check() { diff --git a/vm/ubuntu2204-vm.sh b/vm/ubuntu2204-vm.sh index 002356364..939bd6d44 100644 --- a/vm/ubuntu2204-vm.sh +++ b/vm/ubuntu2204-vm.sh @@ -92,13 +92,13 @@ function check_root() { } function pve_check() { - if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then + if ! pveversion | grep -Eq "pve-manager/8.[1-3]"; then msg_error "This version of Proxmox Virtual Environment is not supported" - echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." + echo -e "Requires Proxmox Virtual Environment Version 8.1 or later." echo -e "Exiting..." sleep 2 exit - fi +fi } function ssh_check() { diff --git a/vm/ubuntu2404-vm.sh b/vm/ubuntu2404-vm.sh index 12d0525d2..6e76e332d 100644 --- a/vm/ubuntu2404-vm.sh +++ b/vm/ubuntu2404-vm.sh @@ -92,13 +92,13 @@ function check_root() { } function pve_check() { - if ! pveversion | grep -Eq "pve-manager/(7\.4-(1[3-8])|8\.[1-2])"; then + if ! pveversion | grep -Eq "pve-manager/8.[1-3]"; then msg_error "This version of Proxmox Virtual Environment is not supported" - echo -e "Requires PVE7 Version 7.4-13 or later, or PVE8 Version 8.1.1 or later." + echo -e "Requires Proxmox Virtual Environment Version 8.1 or later." echo -e "Exiting..." sleep 2 exit - fi +fi } function ssh_check() {