Skip to content
Snippets Groups Projects
Commit a57e0682 authored by tbrehm's avatar tbrehm
Browse files

Added force to rc update script for the bastille firewall when the firewall is...

Added force to rc update script for the bastille firewall when the firewall is deactivated or removed.
parent 334a9f66
No related branches found
No related tags found
No related merge requests found
...@@ -102,7 +102,7 @@ class firewall_plugin { ...@@ -102,7 +102,7 @@ class firewall_plugin {
$app->log('Restarting the firewall',LOGLEVEL_DEBUG); $app->log('Restarting the firewall',LOGLEVEL_DEBUG);
} else { } else {
exec('/etc/init.d/bastille-firewall stop'); exec('/etc/init.d/bastille-firewall stop');
if(@is_file('/etc/debian_version')) exec('update-rc.d bastille-firewall remove'); if(@is_file('/etc/debian_version')) exec('update-rc.d -f bastille-firewall remove');
$app->log('Stopping the firewall',LOGLEVEL_DEBUG); $app->log('Stopping the firewall',LOGLEVEL_DEBUG);
} }
...@@ -113,7 +113,7 @@ class firewall_plugin { ...@@ -113,7 +113,7 @@ class firewall_plugin {
global $app, $conf; global $app, $conf;
exec('/etc/init.d/bastille-firewall stop'); exec('/etc/init.d/bastille-firewall stop');
if(@is_file('/etc/debian_version')) exec('update-rc.d bastille-firewall remove'); if(@is_file('/etc/debian_version')) exec('update-rc.d -f bastille-firewall remove');
$app->log('Stopping the firewall',LOGLEVEL_DEBUG); $app->log('Stopping the firewall',LOGLEVEL_DEBUG);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment