Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Add explicit auto-update disable install mode
rcourtmane512bb62dc7e
diff --git a/install.sh b/install.shindex 924e73c4f9..19aee91323 100755--- a/install.sh+++ b/install.sh@@ -91,6 +91,7 @@ SKIP_DOWNLOAD=falseIN_CONTAINER=falseIN_DOCKER=falseENABLE_AUTO_UPDATES=false+AUTO_UPDATE_CHOICE_EXPLICIT=falseFORCE_VERSION=""FORCE_CHANNEL=""ARCHIVE_OVERRIDE="${PULSE_ARCHIVE_PATH:-}"@@ -914,10 +915,17 @@ create_lxc_container() {fiauto_updates_flag=""+ if [[ "$AUTO_UPDATE_CHOICE_EXPLICIT" == "true" ]]; then+ if [[ "$ENABLE_AUTO_UPDATES" == "true" ]]; then+ auto_updates_flag="--enable-auto-updates"+ else+ auto_updates_flag="--disable-auto-updates"+ fi+ fiif [[ "$BUILD_FROM_SOURCE" == "true" ]]; thenechoprint_info "Skipping auto-update configuration: source builds don't support automatic release updates."- else+ elif [[ "$AUTO_UPDATE_CHOICE_EXPLICIT" != "true" ]]; thenecho# Ask about auto-updatesecho "Enable automatic updates?"@@ -1038,10 +1046,17 @@ create_lxc_container() {frontend_port=7655fiauto_updates_flag=""+ if [[ "$AUTO_UPDATE_CHOICE_EXPLICIT" == "true" ]]; then+ if [[ "$ENABLE_AUTO_UPDATES" == "true" ]]; then+ auto_updates_flag="--enable-auto-updates"+ else+ auto_updates_flag="--disable-auto-updates"+ fi+ fiif [[ "$BUILD_FROM_SOURCE" == "true" ]]; thenechoprint_info "Skipping auto-update configuration: source builds don't support automatic release updates."- else+ elif [[ "$AUTO_UPDATE_CHOICE_EXPLICIT" != "true" ]]; then# Quick mode should ask about auto-updates tooechoecho "Enable automatic updates?"@@ -3832,7 +3847,7 @@ main() {# Check if auto-updates should be offered when using --version# Same logic as update/reinstall paths- if [[ "$ENABLE_AUTO_UPDATES" != "true" ]] && [[ "$IN_DOCKER" != "true" ]]; then+ if [[ "$AUTO_UPDATE_CHOICE_EXPLICIT" != "true" ]] && [[ "$ENABLE_AUTO_UPDATES" != "true" ]] && [[ "$IN_DOCKER" != "true" ]]; thenlocal should_ask_about_updates=falselocal prompt_reason=""@@ -4045,7 +4060,7 @@ main() {# Offer if: not already forced by flag, not in Docker, and either:# 1. Timer doesn't exist (new feature), OR# 2. Timer exists but autoUpdateEnabled is false (misconfigured)- if [[ "$ENABLE_AUTO_UPDATES" != "true" ]] && [[ "$IN_DOCKER" != "true" ]]; then+ if [[ "$AUTO_UPDATE_CHOICE_EXPLICIT" != "true" ]] && [[ "$ENABLE_AUTO_UPDATES" != "true" ]] && [[ "$IN_DOCKER" != "true" ]]; thenlocal should_ask_about_updates=falselocal prompt_reason=""@@ -4100,7 +4115,7 @@ main() {# Offer if: not already forced by flag, not in Docker, and either:# 1. Timer doesn't exist (new feature), OR# 2. Timer exists but autoUpdateEnabled is false (misconfigured)- if [[ "$ENABLE_AUTO_UPDATES" != "true" ]] && [[ "$IN_DOCKER" != "true" ]]; then+ if [[ "$AUTO_UPDATE_CHOICE_EXPLICIT" != "true" ]] && [[ "$ENABLE_AUTO_UPDATES" != "true" ]] && [[ "$IN_DOCKER" != "true" ]]; thenlocal should_ask_about_updates=falselocal prompt_reason=""@@ -4243,7 +4258,7 @@ main() {# Ask about auto-updates for fresh installation# Skip if: already set by flag, in Docker, or being installed from host (IN_CONTAINER=true)- if [[ "$ENABLE_AUTO_UPDATES" != "true" ]] && [[ "$IN_DOCKER" != "true" ]] && [[ "$IN_CONTAINER" != "true" ]]; then+ if [[ "$AUTO_UPDATE_CHOICE_EXPLICIT" != "true" ]] && [[ "$ENABLE_AUTO_UPDATES" != "true" ]] && [[ "$IN_DOCKER" != "true" ]] && [[ "$IN_CONTAINER" != "true" ]]; thenechoecho "Enable automatic updates?"echo "Pulse can automatically install stable updates daily (between 2-6 AM)"@@ -4420,6 +4435,12 @@ while [[ $# -gt 0 ]]; do;;--enable-auto-updates)ENABLE_AUTO_UPDATES=true+ AUTO_UPDATE_CHOICE_EXPLICIT=true+ shift+ ;;+ --disable-auto-updates)+ ENABLE_AUTO_UPDATES=false+ AUTO_UPDATE_CHOICE_EXPLICIT=trueshift;;--source|--from-source|--branch)@@ -4442,7 +4463,8 @@ while [[ $# -gt 0 ]]; doecho " --version VERSION Install specific version (e.g., v4.4.0-rc.1)"echo " --archive PATH Install from a local Pulse release tarball"echo " --source [BRANCH] Build and install from source (default: main)"- echo " --enable-auto-updates Enable automatic stable updates (via systemd timer)"+ echo " --enable-auto-updates Enable automatic stable updates (via systemd timer)"+ echo " --disable-auto-updates Explicitly keep automatic updates disabled"echo ""echo "Management options:"echo " --reset Reset Pulse to fresh configuration"diff --git a/scripts/installtests/install_sh_test.go b/scripts/installtests/install_sh_test.goindex 4d2789a0e1..cc5f761256 100644--- a/scripts/installtests/install_sh_test.go+++ b/scripts/installtests/install_sh_test.go@@ -1245,6 +1245,33 @@ func TestBuildContainerInstallCommandPreservesForcedVersion(t *testing.T) {}}+func TestBuildContainerInstallCommandPreservesExplicitAutoUpdateDisable(t *testing.T) {+ script := `+ FORCE_VERSION="v1.2.3"+ FORCE_CHANNEL=""+ UPDATE_CHANNEL=""+ auto_updates_flag="--disable-auto-updates"+ BUILD_FROM_SOURCE="false"+ SOURCE_BRANCH="main"+ frontend_port="7655"+ CONFIG_DIR="` + t.TempDir() + `"+` + extractRootInstallShellFunction(t, "selected_update_channel") + `+` + extractRootInstallShellFunction(t, "build_container_install_command") + `+ build_container_install_command+ `++ out, err := exec.Command("bash", "-c", script).CombinedOutput()+ if err != nil {+ t.Fatalf("bash: %v\n%s", err, out)+ }++ got := strings.TrimSpace(string(out))+ want := "bash /tmp/install.sh --in-container --version 'v1.2.3' --disable-auto-updates"+ if got != want {+ t.Fatalf("install cmd = %q, want %q", got, want)+ }+}+func TestBuildContainerInstallCommandPassesArchiveToContainer(t *testing.T) {script := `FORCE_VERSION=""@@ -1357,6 +1384,35 @@ func TestPrintContainerRecoveryCommandPreservesForcedVersion(t *testing.T) {}}+func TestPrintContainerRecoveryCommandPreservesExplicitAutoUpdateDisable(t *testing.T) {+ script := `+ FORCE_VERSION="v1.2.3"+ FORCE_CHANNEL=""+ UPDATE_CHANNEL=""+ auto_updates_flag="--disable-auto-updates"+ BUILD_FROM_SOURCE="false"+ SOURCE_BRANCH="main"+ frontend_port="7655"+ CONFIG_DIR="` + t.TempDir() + `"+ print_info() { printf '%s\n' "$1"; }+` + extractRootInstallShellFunction(t, "selected_update_channel") + `+` + extractRootInstallShellFunction(t, "build_container_install_command") + `+` + extractRootInstallShellFunction(t, "print_container_recovery_command") + `+ print_container_recovery_command+ `++ out, err := exec.Command("bash", "-c", script).CombinedOutput()+ if err != nil {+ t.Fatalf("bash: %v\n%s", err, out)+ }++ got := strings.TrimSpace(string(out))+ want := "bash /tmp/install.sh --in-container --version 'v1.2.3' --disable-auto-updates"+ if got != want {+ t.Fatalf("recovery command = %q, want %q", got, want)+ }+}+func TestPrintContainerRecoveryCommandPreservesRCChannel(t *testing.T) {script := `FORCE_VERSION=""