]> git.proxmox.com Git - pve-manager.git/commitdiff
network api : reload : always reload
authorAlexandre Derumier <aderumier@odiso.com>
Thu, 13 Jun 2019 13:49:00 +0000 (15:49 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 14 Jun 2019 07:14:58 +0000 (09:14 +0200)
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>
PVE/API2/Network.pm

index 94fc5c357e2e7ccc39332660aec1bed7badfbde8..152b23f70cfc074536ee8eaf83b5a1c72906ca35 100644 (file)
@@ -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");