diff --git a/bench/bench.py b/bench/bench.py index b0f6d50f..fd58f759 100644 --- a/bench/bench.py +++ b/bench/bench.py @@ -141,9 +141,9 @@ class Bench(Base, Validator): if conf.get("developer_mode"): restart_process_manager(bench_path=self.name, web_workers=web) - if supervisor and conf.get("restart_supervisor_on_update"): + if supervisor or conf.get("restart_supervisor_on_update"): restart_supervisor_processes(bench_path=self.name, web_workers=web) - if systemd and conf.get("restart_systemd_on_update"): + if systemd or conf.get("restart_systemd_on_update"): restart_systemd_processes(bench_path=self.name, web_workers=web) def get_installed_apps(self) -> List: diff --git a/bench/utils/bench.py b/bench/utils/bench.py index 82a63bef..9f170ba1 100644 --- a/bench/utils/bench.py +++ b/bench/utils/bench.py @@ -174,8 +174,7 @@ def migrate_env(python, backup=False): from datetime import datetime parch = os.path.join(path, "archived", "envs") - if not os.path.exists(parch): - os.mkdir(parch) + os.makedirs(parch, exist_ok=True) source = os.path.join(path, "env") target = parch