diff --git a/modoboa/core/commands/deploy.py b/modoboa/core/commands/deploy.py index e2e78092f..8400bbe0f 100644 --- a/modoboa/core/commands/deploy.py +++ b/modoboa/core/commands/deploy.py @@ -270,6 +270,8 @@ class DeployCommand(Command): base_frontend_dir = os.path.join( os.path.dirname(__file__), "../../../frontend/dist/") + if not os.path.exists(base_frontend_dir): + return frontend_target_dir = "{}/frontend".format(parsed_args.name) shutil.copytree(base_frontend_dir, frontend_target_dir)