mirror of https://github.com/zulip/zulip.git
upgrade-zulip-stage-2: Restart Apache when using SSO
(imported from commit c06be261ec4ab56551962d26cfc41590a64f49e7)
This commit is contained in:
parent
fdc63b48d5
commit
718a1a8405
|
@ -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"])
|
||||||
|
|
Loading…
Reference in New Issue