Commit 37be5adf authored by Vladimir Homutov's avatar Vladimir Homutov
Browse files

Added default redirection destination to /dev/stdout.

When a nginx-ldap-auth-daemon.py is executed from console, its output
is set to /dev/stdout by default.  Otherwise, value of a 'LOG' variable is
used, exported by wrapper script.
parent 8d187d9a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
#!/bin/sh
''''[ -z $LOG ] && export LOG=/dev/stdout # '''
''''which python2 >/dev/null && exec python2 -u "$0" "$@" >> $LOG 2>&1 # '''
''''which python  >/dev/null && exec python  -u "$0" "$@" >> $LOG 2>&1 # '''