From 248e3362144cb2dc29ec59f34755aef162cfb621 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 11 Sep 2023 22:05:42 +0000 Subject: [PATCH] check writeable --- Admin/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index 5331aa0..d0aebfa 100755 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -44,7 +44,7 @@ final class Installer extends InstallerAbstract */ public static function install(ApplicationAbstract $app, ModuleInfo $info, SettingsInterface $cfgHandler) : void { - if (OperatingSystem::getSystem() === SystemType::LINUX && !\is_writable('/var/www')) { + if (OperatingSystem::getSystem() === SystemType::LINUX && !\is_writable(__DIR__ . '/../')) { $app->logger->error( 'Directory /var/www is not writable. Please allow the apache user (www-data) to write to this directory.' );