Skip to content

Commit ff82d8b

Browse files
committed
1 parent cf192cd commit ff82d8b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

install/lib/installer_base.lib.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,9 @@ public function configure_apps_vhost()
990990

991991
$command = 'adduser '.$conf['apache']['user'].' '.$apps_vhost_group;
992992
caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
993-
993+
994+
exec('mkdir -p '.escapeshellcmd($conf['web']['website_basedir'].'/apps'));
995+
994996
//* Copy the apps vhost file
995997
$vhost_conf_dir = $conf['apache']['vhost_conf_dir'];
996998
$vhost_conf_enabled_dir = $conf['apache']['vhost_conf_enabled_dir'];
@@ -1016,7 +1018,7 @@ public function configure_apps_vhost()
10161018

10171019
//copy('tpl/apache_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost");
10181020
//* and create the symlink
1019-
if($this->install_ispconfig_interface == true && $this->is_update == false) {
1021+
if($this->install_ispconfig_interface == true) {
10201022
if(@is_link("$vhost_conf_enabled_dir/apps.vhost")) unlink("$vhost_conf_enabled_dir/apps.vhost");
10211023
if(!@is_link("$vhost_conf_enabled_dir/000-apps.vhost")) {
10221024
exec("ln -s $vhost_conf_dir/apps.vhost $vhost_conf_enabled_dir/000-apps.vhost");
@@ -1026,7 +1028,6 @@ public function configure_apps_vhost()
10261028
exec('mkdir -p '.$conf['web']['website_basedir'].'/php-fcgi-scripts/apps');
10271029
exec('cp tpl/apache_apps_fcgi_starter.master '.$conf['web']['website_basedir'].'/php-fcgi-scripts/apps/.php-fcgi-starter');
10281030
exec('chmod +x '.$conf['web']['website_basedir'].'/php-fcgi-scripts/apps/.php-fcgi-starter');
1029-
exec('ln -s /usr/local/apps/interface/web '.$conf['web']['website_basedir'].'/apps');
10301031
exec('chown -R ispapps:ispapps '.$conf['web']['website_basedir'].'/php-fcgi-scripts/apps');
10311032

10321033
}

0 commit comments

Comments
 (0)