From 718a1a84055ee7d65cb88e517f46aebd32882eb4 Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Wed, 13 Nov 2013 16:35:56 -0500 Subject: [PATCH] upgrade-zulip-stage-2: Restart Apache when using SSO (imported from commit c06be261ec4ab56551962d26cfc41590a64f49e7) --- scripts/upgrade-zulip-stage-2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade-zulip-stage-2 b/scripts/upgrade-zulip-stage-2 index ed26cc0dd4..ea2c0226f5 100755 --- a/scripts/upgrade-zulip-stage-2 +++ b/scripts/upgrade-zulip-stage-2 @@ -39,3 +39,8 @@ logging.info("Restarting server...") subprocess.check_call(["cp", "-rT", os.path.join(deploy_path, 'prod-static/serve'), '/home/zulip/prod-static'], preexec_fn=su_to_zulip) subprocess.check_output(["./scripts/restart-server"], preexec_fn=su_to_zulip) + +using_sso = subprocess.check_output(['./bin/get-django-setting', 'USING_SSO'], preexec_fn=su_to_zulip) +if using_sso: + logging.info("Restarting Apache...") + subprocess.check_call(["service", "apache2", "restart"])