From dde9d46b1ea27d066aeb38ef2a7864c933fd8073 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Mon, 17 Aug 2026 23:30:17 +0200 Subject: [PATCH] Fix patch command to restart Webmin instead of reloading --- bin/patch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/patch b/bin/patch index 5223e320b..2d9afff24 100755 --- a/bin/patch +++ b/bin/patch @@ -76,8 +76,9 @@ foreach my $patch (@patches) { $applied++; } -# Reload Webmin once, if any patches were applied -reload_miniserv() if ($applied); +# Restart Webmin once, if any patches were applied, so that changes to +# any file, including miniserv.pl itself, take effect +restart_miniserv() if ($applied); # Report if some patches were not applied if ($failed) { @@ -243,7 +244,7 @@ Apply a patch to Webmin core or its modules from GitHub/GitLab, a local file, or by downloading and replacing the entire file from a raw URL. Multiple patches can be given at once and are applied in the given order, -stopping at the first failure. Webmin is reloaded only once after all +stopping at the first failure. Webmin is restarted only once after all patches are applied. =head1 SYNOPSIS