mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-04 14:02:49 +00:00
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.
This commit is contained in:
parent
d34d739328
commit
bc6713dfff
@ -1352,7 +1352,7 @@ sub __interface_to_string {
|
|||||||
|
|
||||||
sub write_etc_network_interfaces {
|
sub write_etc_network_interfaces {
|
||||||
my ($filename, $fh, $config) = @_;
|
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);
|
my $raw = __write_etc_network_interfaces($config, $ifupdown2);
|
||||||
PVE::Tools::safe_print($filename, $fh, encode('UTF-8', $raw));
|
PVE::Tools::safe_print($filename, $fh, encode('UTF-8', $raw));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user