]> git.proxmox.com Git - ifupdown2.git/commitdiff
post* compat rewrite: do not print changes to stdout
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 10 Mar 2020 07:07:53 +0000 (08:07 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 10 Mar 2020 07:07:56 +0000 (08:07 +0100)
It can contain unicode stuff which gets us warnings and could also be
quite long, so avoid printing that out for now but add some newlines
to make the message stand out more.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/patches/pve/0010-postinst-rm-update-network-config-compatibility.patch

index b6a87bebc0fe4d67571ebc9b0025920e10a50a25..99608f0657f13a303f0944a152d8d18d1a69f135 100644 (file)
@@ -29,8 +29,8 @@ index 3689256..4b628e1 100644
 +      $config = PVE::INotify::read_file('interfaces', 1);
 +
 +      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";
++          #print $config->{changes};
++          print "\nnetwork config changes have been detected for ifupdown2 compatibility.\nSaved in /etc/network/interfaces.new for hot-apply or next reboot.\n\n";
 +      }
 +    ' || true
 +}
@@ -66,8 +66,8 @@ index 5d90b21..bab3dd0 100644
 +        $config = PVE::INotify::read_file('interfaces', 1);
 +
 +        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";
++            #print $config->{changes};
++            print "\nnetwork config changes have been detected for ifupdown2 to ifupdown1 switch compatibility.\nSaved in /etc/network/interfaces.new for next reboot\n\n";
 +        }
 +    ' || true
 +}