Skip to content

Commit 0ee22c7

Browse files
committed
- Removed ufw configuration from installer to avoid "PHP Notice: Undefined index: ufw in /tmp/trunk/install/install.php on line 251".
- Changed phpMyAdmin location in ISPConfig nginx vhost to allow phpmyadmin and phpmyadmin/ (with and without trailing slash).
1 parent 8973e1f commit 0ee22c7

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

install/install.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -247,18 +247,10 @@
247247
$inst->configure_apps_vhost();
248248

249249
//* Configure Firewall
250-
//** Configure Firewall
251-
if($conf['ufw']['installed'] == true) {
252-
//* Configure UFW Firewall
253-
$conf['services']['firewall'] = true;
254-
swriteln('Configuring UFW Firewall');
255-
$inst->configure_ufw_firewall();
256-
} else {
257-
//* Configure Bastille Firewall
258-
$conf['services']['firewall'] = true;
259-
swriteln('Configuring Bastille Firewall');
260-
$inst->configure_firewall();
261-
}
250+
//* Configure Bastille Firewall
251+
$conf['services']['firewall'] = true;
252+
swriteln('Configuring Bastille Firewall');
253+
$inst->configure_firewall();
262254

263255
//* Configure Fail2ban
264256
if($conf['fail2ban']['installed'] == true) {

install/tpl/nginx_ispconfig.vhost.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ server {
2929
deny all;
3030
}
3131

32-
location /phpmyadmin/ {
32+
location /phpmyadmin {
3333
root /usr/share/;
3434
index index.php index.html index.htm;
3535
location ~ ^/phpmyadmin/(.+\.php)$ {

0 commit comments

Comments
 (0)