From d45c95e4613317f0582c03e8d9b439b49da6cfb5 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 19 Aug 2024 16:30:30 +0200 Subject: [PATCH] wait #7037 @0.5 --- app/Jobs/HostingUpdate.php | 2 ++ app/Models/FluidbookExternalInstallServer.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Jobs/HostingUpdate.php b/app/Jobs/HostingUpdate.php index 6f12bbbe2..f3df36298 100644 --- a/app/Jobs/HostingUpdate.php +++ b/app/Jobs/HostingUpdate.php @@ -38,6 +38,8 @@ class HostingUpdate extends Base foreach ($servers as $server) { + /** @var FluidbookExternalInstallServer $server */ + $server->updateHtaccess(); $s = $d . 'server-' . $server->id; Files::copy($r . 'server', $s); Files::recursiveReplaceStringInDir($s, [ diff --git a/app/Models/FluidbookExternalInstallServer.php b/app/Models/FluidbookExternalInstallServer.php index 659f76c46..7279be525 100644 --- a/app/Models/FluidbookExternalInstallServer.php +++ b/app/Models/FluidbookExternalInstallServer.php @@ -95,7 +95,7 @@ class FluidbookExternalInstallServer extends ExternalServer return parent::onSaved(); } - protected function updateHtaccess() + public function updateHtaccess() { if ($this->isHosting()) { $redirections = Json::isJson($this->redirections) ? json_decode($this->redirections, true) : $this->redirections; -- 2.39.5