From 210315f69c29b57980f9e5144ce1ab18a58a7a81 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Mon, 28 Jun 2021 15:25:04 +0200 Subject: [PATCH] Make sure frontend dir exists in deploy command. --- modoboa/core/commands/deploy.py | 2 ++ 1 file changed, 2 insertions(+) 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)