]> git.proxmox.com Git - ifupdown2.git/commitdiff
install/purge compat change, graceful exit
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 7 Mar 2020 15:42:05 +0000 (16:42 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 7 Mar 2020 15:42:05 +0000 (16:42 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/patches/pve/0010-postinst-rm-update-network-config-compatibility.patch

index fb63db156cc7d7d92ad71eac8ef7a7aaa93019e8..b6a87bebc0fe4d67571ebc9b0025920e10a50a25 100644 (file)
@@ -26,13 +26,13 @@ index 3689256..4b628e1 100644
 +
 +      PVE::INotify::write_file('interfaces', $configdata);
 +
-+      my $config = PVE::INotify::read_file('interfaces', 1);
++      $config = PVE::INotify::read_file('interfaces', 1);
 +
-+      if(defined($config->{changes})) {
++      if (defined($config->{changes})) {
 +          print $config->{changes};
 +          print "network config changes has been detected for ifupdown2 compatibility and generated in /etc/network/interfaces.new\n";
 +      }
-+    '
++    ' || true
 +}
 +
  case "$1" in
@@ -63,13 +63,13 @@ index 5d90b21..bab3dd0 100644
 +
 +        PVE::INotify::write_file('interfaces', $configdata);
 +
-+        my $config = PVE::INotify::read_file('interfaces', 1);
++        $config = PVE::INotify::read_file('interfaces', 1);
 +
-+        if(defined($config->{changes})) {
++        if (defined($config->{changes})) {
 +            print $config->{changes};
 +            print "network config changes has been detected for ifupdown1 compatibility and generated in /etc/network/interfaces.new\n";
 +        }
-+    '
++    ' || true
 +}
 +
  case "$1" in