From: Alexandre Derumier Date: Thu, 13 Jun 2019 13:49:00 +0000 (+0200) Subject: network api : reload : always reload X-Git-Url: https://git.proxmox.com/?p=pve-manager.git;a=commitdiff_plain;h=feaf369e77431c0edd95ab52299cc9d1186a885c 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 --- diff --git a/PVE/API2/Network.pm b/PVE/API2/Network.pm index 94fc5c35..152b23f7 100644 --- a/PVE/API2/Network.pm +++ b/PVE/API2/Network.pm @@ -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");