From 65d91d24f06d8c731fdb0afa4f492f9d238c2d8a Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Fri, 05 Jul 2013 07:03:24 -0400
Subject: [PATCH] - changed the way mails for traffic and quota notification are generated - added german translation
---
server/plugins-available/firewall_plugin.inc.php | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/server/plugins-available/firewall_plugin.inc.php b/server/plugins-available/firewall_plugin.inc.php
index 08f735c..7197ccc 100644
--- a/server/plugins-available/firewall_plugin.inc.php
+++ b/server/plugins-available/firewall_plugin.inc.php
@@ -202,7 +202,7 @@
$app->log('Reloading the firewall',LOGLEVEL_DEBUG);
} else {
//* Ensure that bastille firewall is stopped
- exec($conf['init_scripts'] . '/' . 'bastille-firewall stop');
+ exec($conf['init_scripts'] . '/' . 'bastille-firewall stop 2>/dev/null');
if(@is_file('/etc/debian_version')) exec('update-rc.d -f bastille-firewall remove');
//* Start ufw firewall
@@ -255,11 +255,11 @@
if($app->system->is_installed('ufw')) {
exec('ufw disable');
}
- exec($conf['init_scripts'] . '/' . 'bastille-firewall restart');
+ exec($conf['init_scripts'] . '/' . 'bastille-firewall restart 2>/dev/null');
if(@is_file('/etc/debian_version')) exec('update-rc.d bastille-firewall defaults');
$app->log('Restarting the firewall',LOGLEVEL_DEBUG);
} else {
- exec($conf['init_scripts'] . '/' . 'bastille-firewall stop');
+ exec($conf['init_scripts'] . '/' . 'bastille-firewall stop 2>/dev/null');
if(@is_file('/etc/debian_version')) exec('update-rc.d -f bastille-firewall remove');
$app->log('Stopping the firewall',LOGLEVEL_DEBUG);
}
@@ -270,7 +270,7 @@
private function bastille_delete($event_name,$data) {
global $app, $conf;
- exec($conf['init_scripts'] . '/' . 'bastille-firewall stop');
+ exec($conf['init_scripts'] . '/' . 'bastille-firewall stop 2>/dev/null');
if(@is_file('/etc/debian_version')) exec('update-rc.d -f bastille-firewall remove');
$app->log('Stopping the firewall',LOGLEVEL_DEBUG);
--
Gitblit v1.9.1