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

@@ -32,7 +32,7 @@ Listen 444
SetHandler None
</Location>
Alias /media/ "/usr/lib/pymodules/python2.7/django/contrib/admin/media/"
Alias /media/ "/usr/lib/pymodules/python2/django/contrib/admin/media/"
<Location "/media/">
SetHandler None
</Location>

View File

@@ -1,3 +1,3 @@
MAILTO=root
*/10 * * * * zulip cd /home/zulip/deployments/current && python manage.py active_user_stats
*/10 * * * * zulip cd /home/zulip/deployments/current && python2.7 manage.py active_user_stats

View File

@@ -1,4 +1,4 @@
MAILTO=root
# Remove any stale apple device tokens from our list
0 3 * * * zulip cd /home/zulip/deployments/current && python manage.py check_apns_tokens
0 3 * * * zulip cd /home/zulip/deployments/current && python2.7 manage.py check_apns_tokens

View File

@@ -1,4 +1,4 @@
MAILTO=root
# Clear all expired Django sessions at 10:22 PM every day.
22 22 * * * zulip cd /home/zulip/deployments/current && python manage.py clearsessions
22 22 * * * zulip cd /home/zulip/deployments/current && python2.7 manage.py clearsessions

View File

@@ -1,4 +1,4 @@
MAILTO=root
# Send digest emails once a day. Time is in UTC.
0 18 * * * zulip cd /home/zulip/deployments/current && python manage.py enqueue_digest_emails
0 18 * * * zulip cd /home/zulip/deployments/current && python2.7 manage.py enqueue_digest_emails

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2.7
"""
Nagios plugin to check the length of the FTS update log.

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2.7
"""
Nagios plugin to check that Zephyr personals mirrors are forwarding.

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2.7
"""
Nagios plugin to check the difference between the primary and

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2.7
import dateutil.parser
import pytz

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2.7
"""
Nagios plugin to check that the rabbitmq has the correct number of consumers

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2.7
"""
Nagios plugin to check that the rabbitmq queues are not overflowing as a result

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2.7
"""
Script to provide information about send-receive times.

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2.7
"""
Nagios plugin to check that our MIT users' Zephyr mirrors are running.

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2.7
"""
Nagios plugin to check that Zephyr mirror forwarding is running.

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2.7
import subprocess
import sys

View File

@@ -3,7 +3,7 @@
[program:zulip-carbon-cache]
command=python /opt/graphite/bin/carbon-cache.py --debug start
command=python2.7 /opt/graphite/bin/carbon-cache.py --debug start
priority=200 ; the relative start priority (default 999)
autostart=true ; start at supervisord start (default: true)
autorestart=true ; whether/when to restart (default: unexpected)
@@ -15,7 +15,7 @@ stdout_logfile=/var/log/zulip/carbon-cache.log ; stdout log path, NONE f
directory=/home/zulip/
[program:zulip-carbon-aggregator]
command=python /opt/graphite/bin/carbon-aggregator.py --debug start
command=python2.7 /opt/graphite/bin/carbon-aggregator.py --debug start
priority=200 ; the relative start priority (default 999)
autostart=true ; start at supervisord start (default: true)
autorestart=true ; whether/when to restart (default: unexpected)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
#
# Copyright (C) 2003-2009 Edgewall Software

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
#
# Copyright (C) 2003-2009 Edgewall Software

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
#
# Copyright (C)2008-2009 Edgewall Software

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
#
# Copyright © 2013 Zulip, Inc.