Compare commits

..

2 Commits

Author SHA1 Message Date
MickLesk 00c18ddad8 Refactor bootstrap error handling with helper
Extract repeated fatal-error logic into a `_bootstrap_die` helper across alpine-install.func, build.func, and install.func. The helper uses `msg_error` when available, falling back to stderr, then exits with code 115. Inline error blocks are replaced with cleaner one-liner `|| _bootstrap_die` calls.
2026-07-29 08:13:45 +02:00
MickLesk 18cbd7fb50 Harden remote func bootstrapping
Replace bare `source <(curl ...)` calls with a `_bootstrap_source` helper that validates both the download exit code and the presence of a probe function after sourcing. This prevents silent failures when DNS is not yet available in a freshly booted container or when a download fails mid-stream. Applies to build.func, install.func, and alpine-install.func. Also adds retry flags and a connect timeout to curl/wget.
2026-07-29 08:10:57 +02:00
3 changed files with 1 additions and 35 deletions
-14
View File
@@ -510,20 +510,6 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
## 2026-07-29 ## 2026-07-29
### 🚀 Updated Scripts
- backup virtual printer in bambuddy [@asylumexp](https://github.com/asylumexp) ([#16142](https://github.com/community-scripts/ProxmoxVE/pull/16142))
- #### 🐞 Bug Fixes
- ImmichFrame: check .NET SDK before update deployment [@aidaskni](https://github.com/aidaskni) ([#16104](https://github.com/community-scripts/ProxmoxVE/pull/16104))
### 💾 Core
- #### ✨ New Features
- core: Harden remote func bootstrapping with dns issues [@MickLesk](https://github.com/MickLesk) ([#16146](https://github.com/community-scripts/ProxmoxVE/pull/16146))
## 2026-07-28 ## 2026-07-28
### 🚀 Updated Scripts ### 🚀 Updated Scripts
+1 -2
View File
@@ -42,8 +42,7 @@ function update_script() {
/opt/bambuddy/data \ /opt/bambuddy/data \
/opt/bambuddy/bambuddy.db \ /opt/bambuddy/bambuddy.db \
/opt/bambuddy/bambutrack.db \ /opt/bambuddy/bambutrack.db \
/opt/bambuddy/archive \ /opt/bambuddy/archive
/opt/bambuddy/virtual_printer
msg_ok "Backed up Configuration and Data" msg_ok "Backed up Configuration and Data"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "bambuddy" "maziggy/bambuddy" "tarball" "latest" "/opt/bambuddy" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "bambuddy" "maziggy/bambuddy" "tarball" "latest" "/opt/bambuddy"
-19
View File
@@ -30,25 +30,6 @@ function update_script() {
exit exit
fi fi
if ! dotnet --list-sdks 2>/dev/null | grep -q '^8\.'; then
msg_info "Installing .NET SDK 8.0"
if [[ "$(arch_resolve)" == "arm64" ]]; then
curl -fsSL https://dot.net/v1/dotnet-install.sh -o /tmp/dotnet-install.sh
$STD bash /tmp/dotnet-install.sh --channel 8.0 --install-dir /usr/lib/dotnet8
ln -sf /usr/lib/dotnet8/dotnet /usr/bin/dotnet
rm -f /tmp/dotnet-install.sh
else
setup_deb822_repo \
"microsoft" \
"https://packages.microsoft.com/keys/microsoft-2025.asc" \
"https://packages.microsoft.com/debian/13/prod/" \
"trixie" \
"main"
$STD apt install -y dotnet-sdk-8.0
fi
msg_ok "Installed .NET SDK 8.0"
fi
if check_for_gh_release "immichframe" "immichFrame/ImmichFrame"; then if check_for_gh_release "immichframe" "immichFrame/ImmichFrame"; then
msg_info "Stopping Service" msg_info "Stopping Service"
systemctl stop immichframe systemctl stop immichframe