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;
'$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';
}