| | |
| | | if(is_installed('squid')) $conf['squid']['installed'] = true; |
| | | if(is_installed('nginx')) $conf['nginx']['installed'] = true; |
| | | if(is_installed('iptables') && is_installed('ufw')) $conf['ufw']['installed'] = true; |
| | | if(is_installed('iptables') && is_installed('bastille-netfilter')) $conf['firewall']['installed'] = true; |
| | | if(is_installed('fail2ban-server')) $conf['fail2ban']['installed'] = true; |
| | | if(is_installed('vzctl')) $conf['openvz']['installed'] = true; |
| | | if(is_installed('iptables') && is_installed('bastille-netfilter')) $conf['bastille']['installed'] = true; |
| | | if(is_installed('metronome') && is_installed('metronomectl')) $conf['xmpp']['installed'] = true; |
| | | if(is_installed('spamassassin')) $conf['spamassassin']['installed'] = true; |
| | | if(is_installed('vlogger')) $conf['vlogger']['installed'] = true; |
| | |
| | | |
| | | public function force_configure_app($service, $enable_force=true) { |
| | | $force = false; |
| | | swriteln("[WARN] autodetect for $service failed"); |
| | | if($enable_force == true) { |
| | | swriteln("[WARN] autodetect for $service failed"); |
| | | } else { |
| | | swriteln("[INFO] service $service not detected"); |
| | | } |
| | | if($enable_force) { |
| | | if(strtolower($this->simple_query("Force configure $service", array('y', 'n'), 'n') ) == 'y') { |
| | | $force = true; |