mirror of
https://github.com/nginxinc/nginx-ldap-auth.git
synced 2026-10-18 13:07:46 +02:00
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.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/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 # '''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user