mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-26 11:53:00 +01:00
Compare commits
4 Commits
fix/use-ab
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6703fca0e4 | ||
|
|
42fbf1afc5 | ||
|
|
d1c5b03fa7 | ||
|
|
b9a39db667 |
10
CHANGELOG.md
10
CHANGELOG.md
@@ -428,6 +428,16 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
## 2026-03-26
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- tools.func: pin npm to 11.11.0 to work around Node.js 22.22.2 regression [@MickLesk](https://github.com/MickLesk) ([#13296](https://github.com/community-scripts/ProxmoxVE/pull/13296))
|
||||
|
||||
- #### 🔧 Refactor
|
||||
|
||||
- core: use /usr/bin/install to prevent function shadowing [@MickLesk](https://github.com/MickLesk) ([#13299](https://github.com/community-scripts/ProxmoxVE/pull/13299))
|
||||
|
||||
## 2026-03-25
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
@@ -304,7 +304,7 @@ setup_yq() {
|
||||
url="https://github.com/mikefarah/yq/releases/latest/download/yq_linux_${arch}"
|
||||
tmp="$(mktemp)"
|
||||
download_with_progress "$url" "$tmp" || return 1
|
||||
install -m 0755 "$tmp" /usr/local/bin/yq
|
||||
/usr/bin/install -m 0755 "$tmp" /usr/local/bin/yq
|
||||
rm -f "$tmp"
|
||||
msg_ok "Setup yq ($(yq --version 2>/dev/null))"
|
||||
}
|
||||
@@ -376,10 +376,10 @@ setup_uv() {
|
||||
|
||||
# tar contains ./uv
|
||||
if [ -x "$tmpd/uv" ]; then
|
||||
install -m 0755 "$tmpd/uv" "$UV_BIN"
|
||||
/usr/bin/install -m 0755 "$tmpd/uv" "$UV_BIN"
|
||||
else
|
||||
# fallback: in subfolder
|
||||
install -m 0755 "$tmpd"/*/uv "$UV_BIN" 2>/dev/null || {
|
||||
/usr/bin/install -m 0755 "$tmpd"/*/uv "$UV_BIN" 2>/dev/null || {
|
||||
msg_error "uv binary not found in tar"
|
||||
rm -rf "$tmpd"
|
||||
return 1
|
||||
|
||||
@@ -1642,7 +1642,7 @@ maybe_offer_save_app_defaults() {
|
||||
if whiptail --backtitle "Proxmox VE Helper Scripts" \
|
||||
--yesno "Save these advanced settings as defaults for ${APP}?\n\nThis will create:\n${app_vars_path}" 12 72; then
|
||||
mkdir -p "$(dirname "$app_vars_path")"
|
||||
install -m 0644 "$new_tmp" "$app_vars_path"
|
||||
/usr/bin/install -m 0644 "$new_tmp" "$app_vars_path"
|
||||
msg_ok "Saved app defaults: ${app_vars_path}"
|
||||
fi
|
||||
rm -f "$new_tmp" "$diff_tmp"
|
||||
@@ -1676,7 +1676,7 @@ maybe_offer_save_app_defaults() {
|
||||
|
||||
case "$sel" in
|
||||
"Update Defaults")
|
||||
install -m 0644 "$new_tmp" "$app_vars_path"
|
||||
/usr/bin/install -m 0644 "$new_tmp" "$app_vars_path"
|
||||
msg_ok "Updated app defaults: ${app_vars_path}"
|
||||
break
|
||||
;;
|
||||
|
||||
@@ -6233,8 +6233,8 @@ function setup_nodejs() {
|
||||
|
||||
ensure_apt_working || return 1
|
||||
|
||||
# Just update npm to latest
|
||||
$STD npm install -g npm@latest 2>/dev/null || true
|
||||
# Pin npm to 11.11.0 to work around Node.js 22.22.2 regression (nodejs/node#62425)
|
||||
$STD npm install -g npm@11.11.0 2>/dev/null || true
|
||||
|
||||
cache_installed_version "nodejs" "$NODE_VERSION"
|
||||
msg_ok "Update Node.js $NODE_VERSION"
|
||||
@@ -6298,12 +6298,12 @@ function setup_nodejs() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Update to latest npm (with version check to avoid incompatibility)
|
||||
# Pin npm to 11.11.0 to work around Node.js 22.22.2 regression (nodejs/node#62425)
|
||||
local NPM_VERSION
|
||||
NPM_VERSION=$(npm -v 2>/dev/null || echo "0")
|
||||
if [[ "$NPM_VERSION" != "0" ]]; then
|
||||
$STD npm install -g npm@latest 2>/dev/null || {
|
||||
msg_warn "Failed to update npm to latest version (continuing with bundled npm $NPM_VERSION)"
|
||||
$STD npm install -g npm@11.11.0 2>/dev/null || {
|
||||
msg_warn "Failed to update npm to 11.11.0 (continuing with bundled npm $NPM_VERSION)"
|
||||
}
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user