2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-28 06:49:06 +00:00

fix: Respect bench config during restart

Fixes https://github.com/frappe/bench/issues/1261
This commit is contained in:
Gavin D'souza 2022-03-17 10:01:57 +05:30
parent 451712edcc
commit 25f49c2dbb

View File

@ -138,9 +138,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: