From bc6713dfff5796df9ef0b65b543faaf8c682fb7f Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Fri, 21 Feb 2020 10:28:12 +0100 Subject: [PATCH] INotify: detect ifupdown2 from executable not path Seem than addons.conf file is not removed on "apt remove ifupdown2", so /usr/share/ifupdown2 is not removed too. --- src/PVE/INotify.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm index 0136f32..cf086f2 100644 --- a/src/PVE/INotify.pm +++ b/src/PVE/INotify.pm @@ -1352,7 +1352,7 @@ sub __interface_to_string { sub write_etc_network_interfaces { my ($filename, $fh, $config) = @_; - my $ifupdown2 = -e '/usr/share/ifupdown2'; + my $ifupdown2 = -e '/usr/share/ifupdown2/ifupdown2'; my $raw = __write_etc_network_interfaces($config, $ifupdown2); PVE::Tools::safe_print($filename, $fh, encode('UTF-8', $raw)); }