Compare commits

...

2 Commits

Author SHA1 Message Date
Michel Roegl-Brunner 246e4a643b feat(build.func): add var_ignore_disable to bypass disabled-script guard
Allow users to set var_ignore_disable=true to continue past the 'script disabled' guard in runtime_script_status_guard(). A warning is still shown, but execution continues instead of aborting. Deleted scripts remain a hard stop.
2026-07-02 11:17:21 +02:00
community-scripts-pr-app[bot] 6f18af08d8 Update CHANGELOG.md (#15543)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-07-02 09:07:06 +00:00
2 changed files with 15 additions and 0 deletions
+4
View File
@@ -491,6 +491,10 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
## 2026-07-02
### 🆕 New Scripts
- Rackula ([#15465](https://github.com/community-scripts/ProxmoxVE/pull/15465))
### 🚀 Updated Scripts
- #### ✨ New Features
+11
View File
@@ -3788,6 +3788,17 @@ runtime_script_status_guard() {
fi
if [[ "$is_disabled" == "true" ]]; then
# Allow bypass via var_ignore_disable=true (still warn, but continue)
case "${var_ignore_disable:-}" in
1 | yes | true | on)
msg_warn "This script is currently disabled in community-scripts."
[[ -n "$disable_message" ]] && msg_warn "$disable_message"
msg_warn "Bypassing disable status via var_ignore_disable — continuing at your own risk."
msg_warn "More info: ${info_url}"
return 0
;;
esac
msg_error "This script is currently disabled in community-scripts."
[[ -n "$disable_message" ]] && msg_error "$disable_message"
[[ -z "$disable_message" ]] && msg_error "Updates and installs are temporarily disabled for this script."