mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-02 14:55:05 +02:00
Compare commits
15 Commits
2026-05-01
...
github-act
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f3e4c6464 | ||
|
|
0190f4e7f1 | ||
|
|
87fa14afaf | ||
|
|
546de16ef6 | ||
|
|
553925b8cc | ||
|
|
7fd0b9f35b | ||
|
|
6b8a606375 | ||
|
|
9033793a66 | ||
|
|
ccc0ff7a2f | ||
|
|
218fd9060e | ||
|
|
a48d400da5 | ||
|
|
208d34d7a6 | ||
|
|
9578c6fa91 | ||
|
|
a7bcd44ae6 | ||
|
|
289708cc10 |
18
CHANGELOG.md
18
CHANGELOG.md
@@ -448,6 +448,24 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
</details>
|
||||
|
||||
## 2026-05-02
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- opnsense-vm: retry pvesm alloc on transient zfs 'got timeout' errors [@MickLesk](https://github.com/MickLesk) ([#14157](https://github.com/community-scripts/ProxmoxVE/pull/14157))
|
||||
- ImmichFrame: fix update by reinstalling dotnet-sdk before publish [@MickLesk](https://github.com/MickLesk) ([#14158](https://github.com/community-scripts/ProxmoxVE/pull/14158))
|
||||
- [FIX]ShelfMark: Use UV sync for shelfmark backend build; update to Python 3.14 [@vhsdream](https://github.com/vhsdream) ([#14170](https://github.com/community-scripts/ProxmoxVE/pull/14170))
|
||||
- alpine: remove deb/ubuntu-only resource & storage checks from update-script [@MickLesk](https://github.com/MickLesk) ([#14166](https://github.com/community-scripts/ProxmoxVE/pull/14166))
|
||||
- Threadfin: use 'threadfin-app' as app name to avoid version-file clash [@MickLesk](https://github.com/MickLesk) ([#14159](https://github.com/community-scripts/ProxmoxVE/pull/14159))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- #### ✨ New Features
|
||||
|
||||
- core: prompt to also run installed addon update scripts (…/bin/update_*) after update_script [@MickLesk](https://github.com/MickLesk) ([#14162](https://github.com/community-scripts/ProxmoxVE/pull/14162))
|
||||
|
||||
## 2026-05-01
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
@@ -21,8 +21,6 @@ catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -f /usr/local/bin/ironclaw ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
|
||||
@@ -22,8 +22,6 @@ catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
if [[ ! -d /etc/ntfy ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
|
||||
@@ -21,7 +21,6 @@ catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -d /opt/redlib ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
|
||||
@@ -21,8 +21,6 @@ catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if ! apk info -e rustypaste >/dev/null 2>&1; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
|
||||
@@ -30,7 +30,7 @@ function update_script() {
|
||||
fi
|
||||
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
PYTHON_VERSION="3.14" setup_uv
|
||||
|
||||
if check_for_gh_release "shelfmark" "calibrain/shelfmark"; then
|
||||
msg_info "Stopping Service(s)"
|
||||
@@ -59,6 +59,7 @@ function update_script() {
|
||||
RELEASE_VERSION=$(cat "$HOME/.shelfmark")
|
||||
|
||||
msg_info "Updating Shelfmark"
|
||||
export VIRTUAL_ENV=/opt/shelfmark/venv
|
||||
sed -i "s/^RELEASE_VERSION=.*/RELEASE_VERSION=$RELEASE_VERSION/" /etc/shelfmark/.env
|
||||
cd /opt/shelfmark/src/frontend
|
||||
$STD npm ci
|
||||
@@ -67,9 +68,10 @@ function update_script() {
|
||||
cd /opt/shelfmark
|
||||
$STD uv venv -c ./venv
|
||||
$STD source ./venv/bin/activate
|
||||
$STD uv pip install -r ./requirements-base.txt
|
||||
if [[ $(sed -n '/_BYPASS=/s/[^=]*=//p' /etc/shelfmark/.env) == "true" ]] && [[ $(sed -n '/BYPASSER=/s/[^=]*=//p' /etc/shelfmark/.env) == "false" ]]; then
|
||||
$STD uv pip install -r ./requirements-shelfmark.txt
|
||||
$STD uv sync --active --locked --no-default-groups --extra browser
|
||||
else
|
||||
$STD uv sync --active --locked --no-default-groups
|
||||
fi
|
||||
mv /opt/start.sh.bak /opt/shelfmark/start.sh
|
||||
msg_ok "Updated Shelfmark"
|
||||
|
||||
@@ -29,12 +29,12 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "threadfin" "threadfin/threadfin"; then
|
||||
if check_for_gh_release "threadfin-app" "threadfin/threadfin"; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop threadfin
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
fetch_and_deploy_gh_release "threadfin" "threadfin/threadfin" "singlefile" "latest" "/opt/threadfin" "Threadfin_linux_amd64"
|
||||
fetch_and_deploy_gh_release "threadfin-app" "threadfin/threadfin" "singlefile" "latest" "/opt/threadfin" "Threadfin_linux_amd64"
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start threadfin
|
||||
|
||||
@@ -43,8 +43,6 @@ cd /tmp/immichframe/immichFrame.Web
|
||||
$STD npm ci
|
||||
$STD npm run build
|
||||
cp -r build/* /opt/immichframe/wwwroot
|
||||
$STD apt remove -y dotnet-sdk-8.0
|
||||
$STD apt autoremove -y
|
||||
rm -rf /tmp/immichframe
|
||||
mkdir -p /opt/immichframe/Config
|
||||
curl -fsSL "https://raw.githubusercontent.com/immichFrame/ImmichFrame/main/docker/Settings.example.yml" -o /opt/immichframe/Config/Settings.yml
|
||||
|
||||
@@ -116,7 +116,7 @@ else
|
||||
fi
|
||||
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
PYTHON_VERSION="3.14" setup_uv
|
||||
|
||||
fetch_and_deploy_gh_release "shelfmark" "calibrain/shelfmark" "tarball" "latest" "/opt/shelfmark"
|
||||
RELEASE_VERSION=$(cat "$HOME/.shelfmark")
|
||||
@@ -130,11 +130,15 @@ mv /opt/shelfmark/src/frontend/dist /opt/shelfmark/frontend-dist
|
||||
msg_ok "Built Shelfmark frontend"
|
||||
|
||||
msg_info "Configuring Shelfmark"
|
||||
export VIRTUAL_ENV=/opt/shelfmark/venv
|
||||
cd /opt/shelfmark
|
||||
$STD uv venv --clear ./venv
|
||||
$STD source ./venv/bin/activate
|
||||
$STD uv pip install -r ./requirements-base.txt
|
||||
[[ "$DEPLOYMENT_TYPE" == "1" ]] && $STD uv pip install -r ./requirements-shelfmark.txt
|
||||
if [[ "$DEPLOYMENT_TYPE" == "1" ]]; then
|
||||
$STD uv sync --active --locked --no-default-groups --extra browser
|
||||
else
|
||||
$STD uv sync --active --locked --no-default-groups
|
||||
fi
|
||||
mkdir -p {/var/log/shelfmark,/tmp/shelfmark}
|
||||
msg_ok "Configured Shelfmark"
|
||||
|
||||
|
||||
@@ -20,9 +20,7 @@ $STD apt install -y \
|
||||
vlc
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
fetch_and_deploy_gh_release "threadfin" "threadfin/threadfin" "singlefile" "latest" "/opt/threadfin" "Threadfin_linux_amd64"
|
||||
mv /root/.threadfin /root/.threadfin_version
|
||||
mkdir -p /root/.threadfin
|
||||
fetch_and_deploy_gh_release "threadfin-app" "threadfin/threadfin" "singlefile" "latest" "/opt/threadfin" "Threadfin_linux_amd64"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/etc/systemd/system/threadfin.service
|
||||
|
||||
@@ -3504,6 +3504,52 @@ msg_menu() {
|
||||
return 0
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# run_addon_updates()
|
||||
#
|
||||
# - Scans /usr/local/bin/update_* for addon update scripts installed alongside
|
||||
# the main application (e.g. by tools/addon/*.sh)
|
||||
# - For each found addon, prompts the user (60s timeout, default no) whether
|
||||
# it should be updated as well
|
||||
# - Skipped entirely when PHS_SILENT=1 to keep unattended updates predictable
|
||||
# ------------------------------------------------------------------------------
|
||||
run_addon_updates() {
|
||||
shopt -s nullglob
|
||||
local addons=(/usr/local/bin/update_*)
|
||||
shopt -u nullglob
|
||||
|
||||
((${#addons[@]} == 0)) && return 0
|
||||
|
||||
if [[ "${PHS_SILENT:-0}" == "1" ]]; then
|
||||
msg_info "Detected ${#addons[@]} addon update script(s) - skipping (PHS_SILENT)"
|
||||
return 0
|
||||
fi
|
||||
|
||||
echo
|
||||
echo -e "${INFO}${YW} Detected installed addon update script(s):${CL}"
|
||||
local a name
|
||||
for a in "${addons[@]}"; do
|
||||
echo -e "${TAB}- ${a##*/update_}"
|
||||
done
|
||||
echo
|
||||
|
||||
local ans
|
||||
for a in "${addons[@]}"; do
|
||||
name="${a##*/update_}"
|
||||
printf 'Do you also want to update addon "%s"? (y/N) [60s]: ' "$name"
|
||||
ans=""
|
||||
if read -r -t 60 ans; then :; else echo; fi
|
||||
case "${ans,,}" in
|
||||
y | yes)
|
||||
bash "$a" || msg_warn "Addon update for $name failed (rc=$?)"
|
||||
;;
|
||||
*)
|
||||
msg_info "Skipped addon: $name"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# start()
|
||||
#
|
||||
@@ -3523,6 +3569,7 @@ start() {
|
||||
ensure_profile_loaded
|
||||
get_lxc_ip
|
||||
update_script
|
||||
run_addon_updates
|
||||
update_motd_ip
|
||||
cleanup_lxc
|
||||
else
|
||||
@@ -3551,6 +3598,7 @@ start() {
|
||||
ensure_profile_loaded
|
||||
get_lxc_ip
|
||||
update_script
|
||||
run_addon_updates
|
||||
update_motd_ip
|
||||
cleanup_lxc
|
||||
fi
|
||||
|
||||
@@ -738,7 +738,24 @@ done
|
||||
msg_info "Creating a OPNsense VM"
|
||||
qm create $VMID -agent 1${MACHINE} -tablet 0 -localtime 1 -bios ovmf${CPU_TYPE} -cores $CORE_COUNT -memory $RAM_SIZE \
|
||||
-name $HN -tags community-script -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci
|
||||
pvesm alloc $STORAGE $VMID $DISK0 4M &>/dev/null
|
||||
|
||||
# Retry pvesm alloc on transient zfs_request "got timeout" errors (#14127)
|
||||
alloc_attempt=1
|
||||
alloc_max=4
|
||||
alloc_delay=5
|
||||
while :; do
|
||||
alloc_err=$(pvesm alloc $STORAGE $VMID $DISK0 4M 2>&1 >/dev/null) && break
|
||||
if [[ "$alloc_err" == *"got timeout"* && $alloc_attempt -lt $alloc_max ]]; then
|
||||
msg_warn "pvesm alloc hit zfs timeout (attempt $alloc_attempt/$alloc_max), retrying in ${alloc_delay}s..."
|
||||
pvesm free "${DISK0_REF}" &>/dev/null || true
|
||||
sleep "$alloc_delay"
|
||||
alloc_attempt=$((alloc_attempt + 1))
|
||||
alloc_delay=$((alloc_delay * 2))
|
||||
continue
|
||||
fi
|
||||
echo -e "$alloc_err" >&2
|
||||
exit 220
|
||||
done
|
||||
qm importdisk $VMID ${FILE} $STORAGE ${DISK_IMPORT:-} &>/dev/null
|
||||
qm set $VMID \
|
||||
-efidisk0 ${DISK0_REF}${FORMAT} \
|
||||
|
||||
Reference in New Issue
Block a user