From d96397f31255e42cc0f7c7ba19a76863ee91b347 Mon Sep 17 00:00:00 2001 From: Meliox Date: Sat, 8 Aug 2026 22:18:48 +0200 Subject: [PATCH] fix: write config before applying patches so pveproxy restarts with new settings --- src/Scripts/pve-mod-configure | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/Scripts/pve-mod-configure b/src/Scripts/pve-mod-configure index c251ba6..102a535 100644 --- a/src/Scripts/pve-mod-configure +++ b/src/Scripts/pve-mod-configure @@ -160,22 +160,24 @@ main() { esac # ── Write config and apply/revert ───────────────────────────────────────── - # For mods with patches: apply if being enabled, revert if being disabled. - # Option 3 (pve_trigger) has no patches — write_main_conf is sufficient. + # Write configs FIRST so pveproxy reads the new settings when restarted by + # apply-patches.sh. For mods with patches: apply if being enabled, revert if + # being disabled. Option 3 (pve_trigger) has no patches — write_main_conf is + # sufficient. + write_main_conf + node_info_write_conf + nag_screen_write_conf if [[ "$patching_needed" == "1" ]]; then msgb "\n=== Applying patches ===" if ! "$APPLY_PATCHES" "$selected_mod"; then - err "Could not apply all patches for $selected_mod. Configuration was not updated." + err "Could not apply all patches for $selected_mod." fi elif [[ -n "$selected_mod" ]]; then msgb "\n=== Removing patches ===" if ! "$REVERT_PATCHES" "$selected_mod"; then - err "Could not revert all patches for $selected_mod. Configuration was not updated." + err "Could not revert all patches for $selected_mod." fi fi - write_main_conf - node_info_write_conf - nag_screen_write_conf msgb "\n=== Done ===" info "pve-mod is configured and active."