reminder_bot: Add infra for adding reminder bot to every realm.

This commit is contained in:
Aditya Bansal
2018-01-12 13:40:43 +05:30
committed by showell
parent 5a794f9871
commit c770bdaa3a
7 changed files with 73 additions and 3 deletions

View File

@@ -134,6 +134,8 @@ if migrations_needed:
logging.info("Applying database migrations...")
subprocess.check_call(["./manage.py", "migrate", "--noinput"], preexec_fn=su_to_zulip)
subprocess.check_call(["./manage.py", "create_realm_internal_bots"], preexec_fn=su_to_zulip)
logging.info("Restarting Zulip...")
subprocess.check_output(["./scripts/restart-server"], preexec_fn=su_to_zulip)