From 341a0c0e3ffb777c6da3bc507fefe570c86d0660 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 2 Dec 2024 12:22:51 +0100 Subject: [PATCH] wait #7215 @0.25 --- app/Jobs/HostingUpdate.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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'; } -- 2.39.5