Fix a flaky shebang handling issue

This commit is contained in:
Matthieu Cerda 2017-10-26 12:14:13 +02:00 committed by Matthieu Cerda
parent 8952b217a8
commit daad3190b7
1 changed files with 3 additions and 4 deletions

View File

@ -1,8 +1,7 @@
#!/bin/sh
''''which python2 >/dev/null && exec python2 -u "$0" "$@" &>>$LOG # '''
''''which python >/dev/null && exec python -u "$0" "$@" &>>$LOG # '''
#!/usr/bin/env python2
#
# Copyright (C) 2014-2015 Nginx, Inc.
#
import sys, os, signal, base64, ldap, Cookie, argparse
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler