[LON-CAPA-cvs] cvs: loncom /configuration Firewall.pm

raeburn raeburn at source.lon-capa.org
Tue Dec 11 22:34:04 EST 2018


raeburn		Wed Dec 12 03:34:04 2018 EDT

  Modified files:              
    /loncom/configuration	Firewall.pm 
  Log:
  - Suppress unwanted output from &uses_firewalld() on distros where firewalld
    is available but has been disabled in favor of using iptables commands.
  
  
Index: loncom/configuration/Firewall.pm
diff -u loncom/configuration/Firewall.pm:1.15 loncom/configuration/Firewall.pm:1.16
--- loncom/configuration/Firewall.pm:1.15	Wed Oct 24 02:08:04 2018
+++ loncom/configuration/Firewall.pm	Wed Dec 12 03:34:04 2018
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Firewall configuration to allow internal LON-CAPA communication between servers   
 #
-# $Id: Firewall.pm,v 1.15 2018/10/24 02:08:04 raeburn Exp $
+# $Id: Firewall.pm,v 1.16 2018/12/12 03:34:04 raeburn Exp $
 #
 # The LearningOnline Network with CAPA
 #
@@ -58,7 +58,7 @@
     }
     if ($checkfirewalld) {
         my ($loaded,$active);
-        if (open(PIPE,"systemctl status firewalld |")) {
+        if (open(PIPE,"systemctl status firewalld 2>&1 |")) {
             while (<PIPE>) {
                 chomp();
                 if (/^\s*Loaded:\s+(\w+)/) {




More information about the LON-CAPA-cvs mailing list