mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-23 15:54:56 +02:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 56d5d3b92e | |||
| a1c7097ef5 | |||
| 13f348ce1b | |||
| 812200ccd6 | |||
| 5fe4c20ccc | |||
| 33a18190fc | |||
| eabfaf25dc | |||
| e076322c0f |
@@ -488,10 +488,30 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
## 2026-06-23
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- LibreNMS: run daily.sh as librenms user with git available [@MickLesk](https://github.com/MickLesk) ([#15314](https://github.com/community-scripts/ProxmoxVE/pull/15314))
|
||||
|
||||
- #### ✨ New Features
|
||||
|
||||
- termix - patch tmp nginx behaviour to match the install script [@xyzulu](https://github.com/xyzulu) ([#15283](https://github.com/community-scripts/ProxmoxVE/pull/15283))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- Fix syntax error in build function [@l0caldadmin](https://github.com/l0caldadmin) ([#15337](https://github.com/community-scripts/ProxmoxVE/pull/15337))
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- fix: close lxc build function [@ServerBP](https://github.com/ServerBP) ([#15343](https://github.com/community-scripts/ProxmoxVE/pull/15343))
|
||||
|
||||
### 🧰 Tools
|
||||
|
||||
- #### ✨ New Features
|
||||
|
||||
- [arm64] port pve scripts to support arm64 [@asylumexp](https://github.com/asylumexp) ([#15288](https://github.com/community-scripts/ProxmoxVE/pull/15288))
|
||||
|
||||
### ❔ Uncategorized
|
||||
|
||||
- fix(build.func): remove duplicate if statement causing syntax error on container creation [@Copilot](https://github.com/Copilot) ([#15338](https://github.com/community-scripts/ProxmoxVE/pull/15338))
|
||||
|
||||
+14
-3
@@ -29,10 +29,21 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
setup_mariadb
|
||||
ensure_dependencies git
|
||||
if [[ ! -d /opt/librenms/.git ]]; then
|
||||
msg_info "Initializing LibreNMS git metadata"
|
||||
LIBRENMS_VERSION=$(cat ~/.librenms 2>/dev/null)
|
||||
cd /opt/librenms
|
||||
git init -q
|
||||
git remote add origin https://github.com/librenms/librenms.git
|
||||
git fetch --depth 1 origin "refs/tags/v${LIBRENMS_VERSION}" 2>/dev/null ||
|
||||
git fetch --depth 1 origin "refs/tags/${LIBRENMS_VERSION}" 2>/dev/null || true
|
||||
git checkout -qf FETCH_HEAD 2>/dev/null || true
|
||||
chown -R librenms:librenms .git
|
||||
msg_ok "Initialized LibreNMS git metadata"
|
||||
fi
|
||||
msg_info "Updating LibreNMS"
|
||||
su librenms
|
||||
cd /opt/librenms
|
||||
./daily.sh
|
||||
$STD su - librenms -s /bin/bash -c 'cd /opt/librenms && ./daily.sh'
|
||||
msg_ok "Updated LibreNMS"
|
||||
exit
|
||||
}
|
||||
|
||||
+17
-1
@@ -206,9 +206,25 @@ EOF
|
||||
sed -i 's|/app/html|/opt/termix/html|g' /etc/nginx/nginx.conf
|
||||
sed -i 's|/app/nginx|/opt/termix/nginx|g' /etc/nginx/nginx.conf
|
||||
sed -i 's|listen ${PORT};|listen 80;|g' /etc/nginx/nginx.conf
|
||||
|
||||
rm -f /etc/systemd/system/nginx.service.d/pidfile.conf
|
||||
rm -f /etc/tmpfiles.d/nginx-termix.conf
|
||||
|
||||
if [ ! -d /tmp/nginx ]; then
|
||||
mkdir -p /tmp/nginx
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/tmpfiles.d/nginx-termix.conf ]; then
|
||||
echo "d /tmp/nginx 0755 nobody nogroup -" >/etc/tmpfiles.d/nginx-termix.conf
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/systemd/system/nginx.service.d/pidfile.conf ]; then
|
||||
mkdir -p /etc/systemd/system/nginx.service.d/
|
||||
cat <<'EOF' >/etc/systemd/system/nginx.service.d/pidfile.conf
|
||||
[Service]
|
||||
PIDFile=/tmp/nginx/nginx.pid
|
||||
EOF
|
||||
fi
|
||||
|
||||
systemctl daemon-reload
|
||||
nginx -t && systemctl restart nginx
|
||||
msg_ok "Updated Nginx Configuration"
|
||||
|
||||
@@ -17,6 +17,7 @@ msg_info "Installing Dependencies"
|
||||
$STD apt install -y \
|
||||
acl \
|
||||
fping \
|
||||
git \
|
||||
graphviz \
|
||||
imagemagick \
|
||||
mtr-tiny \
|
||||
@@ -64,6 +65,16 @@ EOF
|
||||
chown -R librenms:librenms /opt/librenms
|
||||
chmod 771 /opt/librenms
|
||||
chmod -R ug=rwX /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs /opt/librenms/rrd
|
||||
if [[ ! -d /opt/librenms/.git ]]; then
|
||||
LIBRENMS_VERSION=$(cat ~/.librenms 2>/dev/null)
|
||||
cd /opt/librenms
|
||||
git init -q
|
||||
git remote add origin https://github.com/librenms/librenms.git
|
||||
git fetch --depth 1 origin "refs/tags/v${LIBRENMS_VERSION}" 2>/dev/null ||
|
||||
git fetch --depth 1 origin "refs/tags/${LIBRENMS_VERSION}" 2>/dev/null || true
|
||||
git checkout -qf FETCH_HEAD 2>/dev/null || true
|
||||
chown -R librenms:librenms .git
|
||||
fi
|
||||
msg_ok "Configured LibreNMS"
|
||||
|
||||
msg_info "Configure MariaDB"
|
||||
|
||||
+1
-1
@@ -5820,7 +5820,7 @@ create_lxc_container() {
|
||||
;;
|
||||
*) return 2 ;;
|
||||
esac
|
||||
;;
|
||||
}
|
||||
|
||||
ARCH="$(dpkg --print-architecture)"
|
||||
|
||||
|
||||
@@ -54,6 +54,11 @@ if ! pveversion | grep -Eq "pve-manager/8\.[0-4](\.[0-9]+)*"; then
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$(dpkg --print-architecture 2>/dev/null)" = "arm64" ]; then
|
||||
echo -e "${RD}Intel HW acceleration is only available on x86 (Intel) systems.${CL}"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
whiptail --backtitle "Proxmox VE Helper Scripts" --title "Add Intel HW Acceleration" --yesno "This Will Add Intel HW Acceleration to an existing LXC Container. Proceed?" 8 72
|
||||
NODE=$(hostname)
|
||||
PREV_MENU=()
|
||||
|
||||
@@ -139,6 +139,12 @@ if ! command -v pveversion >/dev/null 2>&1; then
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$(dpkg --print-architecture 2>/dev/null)" = "arm64" ]; then
|
||||
header_info
|
||||
msg_error "CPU microcode updates are only available for x86 (Intel/AMD) systems."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
whiptail --backtitle "Proxmox VE Helper Scripts" --title "Proxmox VE Processor Microcode" --yesno "This will check for CPU microcode packages with the option to install. Proceed?" 10 58
|
||||
|
||||
msg_info "Checking CPU Vendor"
|
||||
|
||||
@@ -157,6 +157,12 @@ if [ ! -f /etc/proxmox-backup/user.cfg ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$(dpkg --print-architecture 2>/dev/null)" = "arm64" ]; then
|
||||
header_info
|
||||
msg_error "CPU microcode updates are only available for x86 (Intel/AMD) systems."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
whiptail --backtitle "Proxmox Backup Server Helper Scripts" \
|
||||
--title "Proxmox Backup Server Processor Microcode" \
|
||||
--yesno "This script searches for CPU microcode packages and offers the option to install them.\nProceed?" 10 68
|
||||
|
||||
@@ -175,4 +175,10 @@ while true; do
|
||||
esac
|
||||
done
|
||||
|
||||
if [ "$(dpkg --print-architecture 2>/dev/null)" = "arm64" ]; then
|
||||
header_info
|
||||
msg_error "This upgrade script targets the amd64 Proxmox repositories and is not supported on ARM64."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
start_routines
|
||||
|
||||
@@ -199,4 +199,10 @@ while true; do
|
||||
esac
|
||||
done
|
||||
|
||||
if [ "$(dpkg --print-architecture 2>/dev/null)" = "arm64" ]; then
|
||||
header_info
|
||||
msg_error "This upgrade script targets the amd64 Proxmox repositories and is not supported on ARM64."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
start_routines
|
||||
|
||||
@@ -135,6 +135,12 @@ EOF
|
||||
no) msg_error "Selected no to Correcting Debian Sources" ;;
|
||||
esac
|
||||
|
||||
if [[ "$(dpkg --print-architecture 2>/dev/null)" == "arm64" ]]; then
|
||||
msg_ok "ARM64 detected - skipping Proxmox repository setup"
|
||||
post_routines_common
|
||||
return
|
||||
fi
|
||||
|
||||
# --- Enterprise repo ---
|
||||
read -r state file <<<"$(repo_state_list pbs-enterprise)"
|
||||
case $state in
|
||||
@@ -209,6 +215,12 @@ EOF
|
||||
no) msg_error "Selected no to Correcting Debian Sources" ;;
|
||||
esac
|
||||
|
||||
if [[ "$(dpkg --print-architecture 2>/dev/null)" == "arm64" ]]; then
|
||||
msg_ok "ARM64 detected - skipping Proxmox repository setup"
|
||||
post_routines_common
|
||||
return
|
||||
fi
|
||||
|
||||
# --- Enterprise repo ---
|
||||
if component_exists_in_sources "pbs-enterprise"; then
|
||||
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "PBS Enterprise Repository" --menu \
|
||||
|
||||
@@ -53,6 +53,11 @@ if ! dpkg -s proxmox-mailgateway-container >/dev/null 2>&1 &&
|
||||
exit 232
|
||||
fi
|
||||
|
||||
if [ "$(dpkg --print-architecture 2>/dev/null)" = "arm64" ]; then
|
||||
msg_error "Proxmox Mail Gateway does not support ARM64."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
repo_state() {
|
||||
# $1 = repo name (e.g. pmg-enterprise, pmg-no-subscription, pmgtest)
|
||||
local repo="$1"
|
||||
|
||||
@@ -125,6 +125,12 @@ EOF
|
||||
no) msg_error "Selected no to Correcting Proxmox VE Sources" ;;
|
||||
esac
|
||||
|
||||
if [[ "$(dpkg --print-architecture 2>/dev/null)" == "arm64" ]]; then
|
||||
msg_ok "ARM64 detected - skipping Proxmox repository setup"
|
||||
post_routines_common
|
||||
return
|
||||
fi
|
||||
|
||||
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "PVE-ENTERPRISE" --menu "The 'pve-enterprise' repository is only available to users who have purchased a Proxmox VE subscription.\n \nDisable 'pve-enterprise' repository?" 14 58 2 \
|
||||
"yes" " " \
|
||||
"no" " " 3>&2 2>&1 1>&3)
|
||||
@@ -282,6 +288,12 @@ EOF
|
||||
esac
|
||||
fi
|
||||
|
||||
if [[ "$(dpkg --print-architecture 2>/dev/null)" == "arm64" ]]; then
|
||||
msg_ok "ARM64 detected - skipping Proxmox repository setup"
|
||||
post_routines_common
|
||||
return
|
||||
fi
|
||||
|
||||
# ---- PVE-ENTERPRISE ----
|
||||
if component_exists_in_sources "pve-enterprise"; then
|
||||
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" \
|
||||
|
||||
@@ -131,6 +131,12 @@ if ! command -v pveversion >/dev/null 2>&1; then
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$(dpkg --print-architecture 2>/dev/null)" = "arm64" ]; then
|
||||
header_info
|
||||
msg_error "This upgrade script targets the amd64 Proxmox VE repositories and is not supported on ARM64."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! pveversion | grep -Eq "pve-manager/(7\.4-(16|17|18|19))"; then
|
||||
header_info
|
||||
msg_error "This version of Proxmox Virtual Environment is not supported"
|
||||
|
||||
Reference in New Issue
Block a user