Skip to content

Commit 8eb646a

Browse files
committed
Fixed a firewall configuration problem.
1 parent 1593cd7 commit 8eb646a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

install/install.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,19 +229,17 @@
229229
$inst->configure_apps_vhost();
230230

231231
//* Configure Firewall
232-
//swriteln('Configuring Firewall');
233-
//$inst->configure_firewall();
234232
//** Configure Firewall
235-
if($conf['bastille']['installed'] == true) {
233+
if($conf['ufw']['installed'] == true) {
234+
//* Configure UFW Firewall
235+
$conf['services']['firewall'] = true;
236+
swriteln('Configuring UFW Firewall');
237+
$inst->configure_ufw_firewall();
238+
} else {
236239
//* Configure Bastille Firewall
237240
$conf['services']['firewall'] = true;
238241
swriteln('Configuring Bastille Firewall');
239242
$inst->configure_firewall();
240-
} elseif($conf['ufw']['installed'] == true) {
241-
//* Configure Ubuntu Firewall
242-
$conf['services']['firewall'] = true;
243-
swriteln('Configuring Ubuntu Firewall');
244-
$inst->configure_ufw_firewall();
245243
}
246244

247245
//* Configure Fail2ban

0 commit comments

Comments
 (0)