Trying to run the nginx-ldap-auth-daemon.py script without the $LOG environment variable set (e.g. for testing purposes) results in a not-so-useful sh error:
# /usr/bin/nginx-ldap-auth-daemon
/usr/bin/nginx-ldap-auth-daemon: line 2: $LOG: ambiguous redirect
The shell code at the beginning of the script should be changed to add a default value for $LOG and/or to emit an error message that explicitly says that variable is required.
Trying to run the
nginx-ldap-auth-daemon.py
script without the$LOG
environment variable set (e.g. for testing purposes) results in a not-so-usefulsh
error:The shell code at the beginning of the script should be changed to add a default value for
$LOG
and/or to emit an error message that explicitly says that variable is required.