mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
Consistently use /usr/bin/env python2.7 in shebangs and commands.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2.7
|
||||
import os
|
||||
import sys
|
||||
import pwd
|
||||
@@ -20,10 +20,10 @@ if pwd.getpwuid(os.getuid())[0] != "zulip":
|
||||
sys.exit(1)
|
||||
|
||||
# Send a statsd event on restarting the server
|
||||
subprocess.check_call(["python", "./manage.py", "send_stats", "incr", "events.server_restart", str(int(time.time()))])
|
||||
subprocess.check_call(["python2.7", "./manage.py", "send_stats", "incr", "events.server_restart", str(int(time.time()))])
|
||||
|
||||
logging.info("Filling memcached caches")
|
||||
subprocess.check_call(["python", "./manage.py", "fill_memcached_caches"])
|
||||
subprocess.check_call(["python2.7", "./manage.py", "fill_memcached_caches"])
|
||||
|
||||
# Restart the FastCGI and related processes via supervisorctl.
|
||||
logging.info("Stopping workers")
|
||||
|
||||
Reference in New Issue
Block a user