mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-04 09:42:50 +00:00
network api : reload : always reload
reload also if interfaces.new don't exist (for vnet or other user change in different file) Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
bf32b90e89
commit
feaf369e77
@ -541,7 +541,6 @@ __PACKAGE__->register_method({
|
||||
my $new_config_file = "/etc/network/interfaces.new";
|
||||
|
||||
die "you need ifupdown2 to reload networking\n" if !-e '/usr/share/ifupdown2';
|
||||
die "no new network config to apply\n" if !-e $new_config_file;
|
||||
|
||||
#clean-me
|
||||
my $fh = IO::File->new("<$current_config_file");
|
||||
|
Loading…
Reference in New Issue
Block a user