mirror of https://github.com/zulip/zulip.git
Move apache2 restart for SSO sites to restart-server
(imported from commit f999e2b0591a11442c1d3fdba2393ecf6e78bad3)
This commit is contained in:
parent
7f2936a985
commit
974159ec94
|
@ -39,8 +39,3 @@ logging.info("Restarting Zulip...")
|
|||
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"])
|
||||
|
|
|
@ -31,5 +31,10 @@ subprocess.check_call(["supervisorctl", "stop", "zulip-workers:* zulip-django zu
|
|||
subprocess.check_call(["ln", '-nsf', deploy_path, os.path.join(DEPLOYMENTS_DIR, "current")])
|
||||
subprocess.check_call(["supervisorctl", "start", "zulip-tornado zulip-django zulip-workers:*"])
|
||||
|
||||
using_sso = subprocess.check_output(['./bin/get-django-setting', 'USING_SSO'])
|
||||
if using_sso.strip() == 'True':
|
||||
logging.info("Restarting Apache WSGI process...")
|
||||
subprocess.check_call(["pkill", "-f", "apache2", "-u", "zulip"])
|
||||
|
||||
logging.info("Done!")
|
||||
print OKGREEN + "Application restarted successfully!" + ENDC
|
||||
|
|
Loading…
Reference in New Issue