Consistently use /usr/bin/env python2.7 in shebangs and commands.

This commit is contained in:
Steven Oud
2015-10-04 18:56:26 +02:00
committed by Luke Faraone
parent 136c55e43d
commit d5435fad1d
124 changed files with 166 additions and 166 deletions

View File

@@ -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")