Turn off caching when reading network manager config files, as they may be modified by the nm cli command

https://forum.virtualmin.com/t/virtualmin-virtualserver-ip-copy-to-services/133442/12
This commit is contained in:
Jamie Cameron
2025-05-20 16:43:39 -07:00
parent 693f3c792e
commit 8358bd20af

View File

@ -619,6 +619,7 @@ foreach my $iface (@fix) {
sub read_nm_config
{
my ($f) = @_;
&unflush_file_lines($f); # NM may have modified this file
my $lref = &read_file_lines($f, 1);
my @rv;
my $sect;