From: Alexandre Derumier Date: Fri, 21 Feb 2020 09:28:12 +0000 (+0100) Subject: INotify: detect ifupdown2 from executable not path X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=bc6713dfff5796df9ef0b65b543faaf8c682fb7f 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. --- 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)); }