From: Vincent Vanwaelscappel Date: Mon, 2 Dec 2024 11:22:51 +0000 (+0100) Subject: wait #7215 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=341a0c0e3ffb777c6da3bc507fefe570c86d0660;p=fluidbook-toolbox.git wait #7215 @0.25 --- diff --git a/app/Jobs/HostingUpdate.php b/app/Jobs/HostingUpdate.php index f3df36298..d7b3ade4e 100644 --- a/app/Jobs/HostingUpdate.php +++ b/app/Jobs/HostingUpdate.php @@ -36,8 +36,12 @@ class HostingUpdate extends Base copy($r . 'updateall', $d . 'update'); - foreach ($servers as $server) { + $basePath = trim($server->base_path, '/'); + if ($basePath != '') { + $basePath = '/' . $basePath; + } + /** @var FluidbookExternalInstallServer $server */ $server->updateHtaccess(); $s = $d . 'server-' . $server->id; @@ -48,7 +52,7 @@ class HostingUpdate extends Base '$dockerpath' => (true || $server->php) ? '/var/www/html' : '/usr/local/apache2/htdocs', '$domains' => implode(',', Text::explodeNewLines($server->subdomains)), '$hosting' => $name, - '$path' => $data['basepath'] . $server->base_path, + '$path' => $data['basepath'] . $basePath, ]); $updateAll[] = '/docker/fluidbook-' . $name . '/server-' . $server->id . '/update'; }