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:
Alexandre Derumier 2019-06-13 15:49:00 +02:00 committed by Thomas Lamprecht
parent bf32b90e89
commit feaf369e77

View 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");