From f4d1fe18779549be07606ad05c02d1d598576321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Wed, 1 Jul 2020 09:02:19 +0300 Subject: [PATCH] fixed #1499 --- overrides/akaunting/module/Commands/InstallCommand.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/overrides/akaunting/module/Commands/InstallCommand.php b/overrides/akaunting/module/Commands/InstallCommand.php index b5bf6318c..a49d4cb5f 100644 --- a/overrides/akaunting/module/Commands/InstallCommand.php +++ b/overrides/akaunting/module/Commands/InstallCommand.php @@ -31,6 +31,11 @@ class InstallCommand extends Command { $this->prepare(); + if ($this->getModel()) { + $this->comment("Module [{$this->alias}] is already installed."); + return; + } + $this->changeRuntime(); // Create db