mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
Consistently use /usr/bin/env python2.7 in shebangs and commands.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2.7
|
||||
|
||||
"""
|
||||
Nagios plugin to check the length of the FTS update log.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2.7
|
||||
|
||||
"""
|
||||
Nagios plugin to check that Zephyr personals mirrors are forwarding.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2.7
|
||||
|
||||
"""
|
||||
Nagios plugin to check the difference between the primary and
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2.7
|
||||
|
||||
import dateutil.parser
|
||||
import pytz
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2.7
|
||||
|
||||
"""
|
||||
Script to provide information about send-receive times.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2.7
|
||||
|
||||
"""
|
||||
Nagios plugin to check that Zephyr mirror forwarding is running.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2.7
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2.7
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (C) 2003-2009 Edgewall Software
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2.7
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (C) 2003-2009 Edgewall Software
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2.7
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (C)2008-2009 Edgewall Software
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2.7
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright © 2013 Zulip, Inc.
|
||||
|
||||
Reference in New Issue
Block a user