From daad3190b728d6f323102a34a6e9122de9ebadac Mon Sep 17 00:00:00 2001 From: Matthieu Cerda Date: Thu, 26 Oct 2017 12:14:13 +0200 Subject: [PATCH] Fix a flaky shebang handling issue --- nginx-ldap-auth-daemon.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nginx-ldap-auth-daemon.py b/nginx-ldap-auth-daemon.py index 31626d1..a5d77eb 100755 --- a/nginx-ldap-auth-daemon.py +++ b/nginx-ldap-auth-daemon.py @@ -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