3434
3535error_reporting (E_ALL |E_STRICT );
3636
37+ define ('INSTALLER_RUN ' , true );
38+
3739//** The banner on the command line
3840echo "\n\n" .str_repeat ('- ' ,80 )."\n" ;
3941echo " _____ ___________ _____ __ _ ____
106108$ conf ['language ' ] = $ inst ->simple_query ('Select language ' , array ('en ' ,'de ' ), 'en ' );
107109$ conf ['timezone ' ] = get_system_timezone ();
108110
109- //* Set defaukt theme
111+ //* Set default theme
110112$ conf ['theme ' ] = 'default ' ;
113+ $ conf ['language_file_import_enabled ' ] = true ;
111114
112115//** Select installation mode
113116$ install_mode = $ inst ->simple_query ('Installation mode ' , array ('standard ' ,'expert ' ), 'standard ' );
257260 $ inst ->configure_apps_vhost ();
258261
259262 //* Configure Firewall
260- if ($ conf ['ufw ' ]['installed ' ] == true ) {
261- //* Configure Ubuntu Firewall
262- $ conf ['services ' ]['firewall ' ] = true ;
263- swriteln ('Configuring Ubuntu Firewall ' );
264- $ inst ->configure_ufw_firewall ();
265- } else {
266- //* Configure Bastille Firewall
267- $ conf ['services ' ]['firewall ' ] = true ;
268- swriteln ('Configuring Bastille Firewall ' );
269- $ inst ->configure_bastille_firewall ();
270- }
263+ //* Configure Bastille Firewall
264+ $ conf ['services ' ]['firewall ' ] = true ;
265+ swriteln ('Configuring Bastille Firewall ' );
266+ $ inst ->configure_firewall ();
271267
272268 //* Configure Fail2ban
273269 if ($ conf ['fail2ban ' ]['installed ' ] == true ) {
335331 if ($ conf ['bind ' ]['installed ' ] == true && $ conf ['bind ' ]['init_script ' ] != '' && is_executable ($ conf ['init_scripts ' ].'/ ' .$ conf ['bind ' ]['init_script ' ])) system ($ conf ['init_scripts ' ].'/ ' .$ conf ['bind ' ]['init_script ' ].' restart &> /dev/null ' );
336332 //if($conf['squid']['installed'] == true && $conf['squid']['init_script'] != '' && is_file($conf['init_scripts'].'/'.$conf['squid']['init_script'])) system($conf['init_scripts'].'/'.$conf['squid']['init_script'].' restart &> /dev/null');
337333 if ($ conf ['nginx ' ]['installed ' ] == true && $ conf ['nginx ' ]['init_script ' ] != '' && is_file ($ conf ['init_scripts ' ].'/ ' .$ conf ['nginx ' ]['init_script ' ])) system ($ conf ['init_scripts ' ].'/ ' .$ conf ['nginx ' ]['init_script ' ].' restart &> /dev/null ' );
338- if ($ conf ['ufw ' ]['installed ' ] == true && $ conf ['ufw ' ]['init_script ' ] != '' && is_file ($ conf ['init_scripts ' ].'/ ' .$ conf ['ufw ' ]['init_script ' ])) system ($ conf ['init_scripts ' ].'/ ' .$ conf ['ufw ' ]['init_script ' ].' restart &> /dev/null ' );
334+ // if($conf['ufw']['installed'] == true && $conf['ufw']['init_script'] != '' && is_file($conf['init_scripts'].'/'.$conf['ufw']['init_script'])) system($conf['init_scripts'].'/'.$conf['ufw']['init_script'].' restart &> /dev/null');
339335}else {
340336
341337 //* In expert mode, we select the services in the following steps, only db is always available
551547
552548 //** Configure Firewall
553549 if (strtolower ($ inst ->simple_query ('Configure Firewall Server ' ,array ('y ' ,'n ' ),'y ' )) == 'y ' ) {
554- if ($ conf ['ufw ' ]['installed ' ] == true ) {
550+ //if($conf['bastille']['installed'] == true) {
551+ //* Configure Bastille Firewall
552+ $ conf ['services ' ]['firewall ' ] = true ;
553+ swriteln ('Configuring Bastille Firewall ' );
554+ $ inst ->configure_firewall ();
555+ /*} elseif($conf['ufw']['installed'] == true) {
555556 //* Configure Ubuntu Firewall
556557 $conf['services']['firewall'] = true;
557558 swriteln('Configuring Ubuntu Firewall');
558559 $inst->configure_ufw_firewall();
559- } else {
560- //* Configure Bastille Firewall
561- $ conf ['services ' ]['firewall ' ] = true ;
562- swriteln ('Configuring Bastille Firewall ' );
563- $ inst ->configure_bastille_firewall ();
564560 }
561+ */
565562 }
566563
567564 //** Configure Firewall
629626echo "Installation completed. \n" ;
630627
631628
632- ?>
629+ ?>
0 commit comments