Skip to content

Commit a57e068

Browse files
committed
Added force to rc update script for the bastille firewall when the firewall is deactivated or removed.
1 parent 334a9f6 commit a57e068

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/plugins-available/firewall_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function update($event_name,$data) {
102102
$app->log('Restarting the firewall',LOGLEVEL_DEBUG);
103103
} else {
104104
exec('/etc/init.d/bastille-firewall stop');
105-
if(@is_file('/etc/debian_version')) exec('update-rc.d bastille-firewall remove');
105+
if(@is_file('/etc/debian_version')) exec('update-rc.d -f bastille-firewall remove');
106106
$app->log('Stopping the firewall',LOGLEVEL_DEBUG);
107107
}
108108

@@ -113,7 +113,7 @@ function delete($event_name,$data) {
113113
global $app, $conf;
114114

115115
exec('/etc/init.d/bastille-firewall stop');
116-
if(@is_file('/etc/debian_version')) exec('update-rc.d bastille-firewall remove');
116+
if(@is_file('/etc/debian_version')) exec('update-rc.d -f bastille-firewall remove');
117117
$app->log('Stopping the firewall',LOGLEVEL_DEBUG);
118118

119119
}

0 commit comments

Comments
 (0)