upgrade-zulip-stage-2: Restart Apache when using SSO

(imported from commit c06be261ec4ab56551962d26cfc41590a64f49e7)
This commit is contained in:
Zev Benjamin 2013-11-13 16:35:56 -05:00
parent fdc63b48d5
commit 718a1a8405
1 changed files with 5 additions and 0 deletions

View File

@ -39,3 +39,8 @@ logging.info("Restarting server...")
subprocess.check_call(["cp", "-rT", os.path.join(deploy_path, 'prod-static/serve'), subprocess.check_call(["cp", "-rT", os.path.join(deploy_path, 'prod-static/serve'),
'/home/zulip/prod-static'], preexec_fn=su_to_zulip) '/home/zulip/prod-static'], preexec_fn=su_to_zulip)
subprocess.check_output(["./scripts/restart-server"], 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"])