@@ -1420,7 +1420,7 @@ public function configure_apps_vhost() {
14201420 global $ conf ;
14211421
14221422 //* Create the ispconfig apps vhost user and group
1423- if ($ conf ['apache ' ]['installed ' ] == true ){
1423+ if ($ conf ['apache ' ]['installed ' ] == true && $ this -> install_ispconfig_interface == true ){
14241424 $ apps_vhost_user = escapeshellcmd ($ conf ['web ' ]['apps_vhost_user ' ]);
14251425 $ apps_vhost_group = escapeshellcmd ($ conf ['web ' ]['apps_vhost_group ' ]);
14261426 $ install_dir = escapeshellcmd ($ conf ['web ' ]['website_basedir ' ].'/apps ' );
@@ -1469,12 +1469,11 @@ public function configure_apps_vhost() {
14691469
14701470 //copy('tpl/apache_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost");
14711471 //* and create the symlink
1472- if ($ this ->install_ispconfig_interface == true ) {
1473- if (@is_link ($ vhost_conf_enabled_dir .'/apps.vhost ' )) unlink ($ vhost_conf_enabled_dir .'/apps.vhost ' );
1474- if (!@is_link ($ vhost_conf_enabled_dir .'/000-apps.vhost ' )) {
1475- symlink ($ vhost_conf_dir .'/apps.vhost ' ,$ vhost_conf_enabled_dir .'/000-apps.vhost ' );
1476- }
1472+ if (@is_link ($ vhost_conf_enabled_dir .'/apps.vhost ' )) unlink ($ vhost_conf_enabled_dir .'/apps.vhost ' );
1473+ if (!@is_link ($ vhost_conf_enabled_dir .'/000-apps.vhost ' )) {
1474+ symlink ($ vhost_conf_dir .'/apps.vhost ' ,$ vhost_conf_enabled_dir .'/000-apps.vhost ' );
14771475 }
1476+
14781477 if (!is_file ($ conf ['web ' ]['website_basedir ' ].'/php-fcgi-scripts/apps/.php-fcgi-starter ' )) {
14791478 mkdir ($ conf ['web ' ]['website_basedir ' ].'/php-fcgi-scripts/apps ' , 0755 , true );
14801479 copy ('tpl/apache_apps_fcgi_starter.master ' ,$ conf ['web ' ]['website_basedir ' ].'/php-fcgi-scripts/apps/.php-fcgi-starter ' );
@@ -1483,7 +1482,7 @@ public function configure_apps_vhost() {
14831482
14841483 }
14851484 }
1486- if ($ conf ['nginx ' ]['installed ' ] == true ){
1485+ if ($ conf ['nginx ' ]['installed ' ] == true && $ this -> install_ispconfig_interface == true ){
14871486 $ apps_vhost_user = escapeshellcmd ($ conf ['web ' ]['apps_vhost_user ' ]);
14881487 $ apps_vhost_group = escapeshellcmd ($ conf ['web ' ]['apps_vhost_group ' ]);
14891488 $ install_dir = escapeshellcmd ($ conf ['web ' ]['website_basedir ' ].'/apps ' );
@@ -1548,12 +1547,11 @@ public function configure_apps_vhost() {
15481547
15491548 //copy('tpl/nginx_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost");
15501549 //* and create the symlink
1551- if ($ this ->install_ispconfig_interface == true ) {
1552- if (@is_link ($ vhost_conf_enabled_dir .'/apps.vhost ' )) unlink ($ vhost_conf_enabled_dir .'/apps.vhost ' );
1553- if (!@is_link ($ vhost_conf_enabled_dir .'/000-apps.vhost ' )) {
1554- symlink ($ vhost_conf_dir .'/apps.vhost ' ,$ vhost_conf_enabled_dir .'/000-apps.vhost ' );
1555- }
1550+ if (@is_link ($ vhost_conf_enabled_dir .'/apps.vhost ' )) unlink ($ vhost_conf_enabled_dir .'/apps.vhost ' );
1551+ if (!@is_link ($ vhost_conf_enabled_dir .'/000-apps.vhost ' )) {
1552+ symlink ($ vhost_conf_dir .'/apps.vhost ' ,$ vhost_conf_enabled_dir .'/000-apps.vhost ' );
15561553 }
1554+
15571555 }
15581556 }
15591557
@@ -1815,7 +1813,7 @@ public function install_ispconfig() {
18151813 $ command = "chmod +x $ install_dir/server/scripts/*.sh " ;
18161814 caselog ($ command .' &> /dev/null ' , __FILE__ , __LINE__ , "EXECUTED: $ command " , "Failed to execute the command $ command " );
18171815
1818- if ($ conf ['apache ' ]['installed ' ] == true ){
1816+ if ($ conf ['apache ' ]['installed ' ] == true && $ this -> install_ispconfig_interface == true ){
18191817 //* Copy the ISPConfig vhost for the controlpanel
18201818 $ vhost_conf_dir = $ conf ['apache ' ]['vhost_conf_dir ' ];
18211819 $ vhost_conf_enabled_dir = $ conf ['apache ' ]['vhost_conf_enabled_dir ' ];
@@ -1841,7 +1839,7 @@ public function install_ispconfig() {
18411839
18421840 //copy('tpl/apache_ispconfig.vhost.master', $vhost_conf_dir.'/ispconfig.vhost');
18431841 //* and create the symlink
1844- if ($ this ->install_ispconfig_interface == true && $ this -> is_update == false ) {
1842+ if ($ this ->is_update == false ) {
18451843 if (@is_link ($ vhost_conf_enabled_dir .'/ispconfig.vhost ' )) unlink ($ vhost_conf_enabled_dir .'/ispconfig.vhost ' );
18461844 if (!@is_link ($ vhost_conf_enabled_dir .'/000-ispconfig.vhost ' )) {
18471845 symlink ($ vhost_conf_dir .'/ispconfig.vhost ' ,$ vhost_conf_enabled_dir .'/000-ispconfig.vhost ' );
@@ -1857,7 +1855,7 @@ public function install_ispconfig() {
18571855 }
18581856 }
18591857
1860- if ($ conf ['nginx ' ]['installed ' ] == true ){
1858+ if ($ conf ['nginx ' ]['installed ' ] == true && $ this -> install_ispconfig_interface == true ){
18611859 //* Copy the ISPConfig vhost for the controlpanel
18621860 $ vhost_conf_dir = $ conf ['nginx ' ]['vhost_conf_dir ' ];
18631861 $ vhost_conf_enabled_dir = $ conf ['nginx ' ]['vhost_conf_enabled_dir ' ];
@@ -1900,7 +1898,7 @@ public function install_ispconfig() {
19001898
19011899 //copy('tpl/nginx_ispconfig.vhost.master', $vhost_conf_dir.'/ispconfig.vhost');
19021900 //* and create the symlink
1903- if ($ this ->install_ispconfig_interface == true && $ this -> is_update == false ) {
1901+ if ($ this ->is_update == false ) {
19041902 if (@is_link ($ vhost_conf_enabled_dir .'/ispconfig.vhost ' )) unlink ($ vhost_conf_enabled_dir .'/ispconfig.vhost ' );
19051903 if (!@is_link ($ vhost_conf_enabled_dir .'/000-ispconfig.vhost ' )) {
19061904 symlink ($ vhost_conf_dir .'/ispconfig.vhost ' ,$ vhost_conf_enabled_dir .'/000-ispconfig.vhost ' );
0 commit comments