diff --git a/debian/nginx-ldap-auth.init b/debian/nginx-ldap-auth.init index ce3eb61..86082f4 100755 --- a/debian/nginx-ldap-auth.init +++ b/debian/nginx-ldap-auth.init @@ -42,7 +42,7 @@ case "$1" in SSDOPTS="--quiet --oknodo --background --no-close --make-pidfile --pidfile $PIDFILE --chuid $USER:$GROUP --exec $DAEMON" DAEMON_ARGS="$URL $BASE $BIND_DN $BIND_PASS $COOKIE $FILTER $REALM" - if start-stop-daemon --start $SSDOPTS -- $DAEMON_ARGS &>$LOG + if start-stop-daemon --start $SSDOPTS -- $DAEMON_ARGS > $LOG 2>&1 then echo "$NAME." else diff --git a/nginx-ldap-auth-daemon.py b/nginx-ldap-auth-daemon.py index 4c79f8e..2b529ce 100755 --- a/nginx-ldap-auth-daemon.py +++ b/nginx-ldap-auth-daemon.py @@ -1,6 +1,6 @@ #!/bin/sh -''''which python2 >/dev/null && exec python2 -u "$0" "$@" &>>$LOG # ''' -''''which python >/dev/null && exec python -u "$0" "$@" &>>$LOG # ''' +''''which python2 >/dev/null && exec python2 -u "$0" "$@" >> $LOG 2>&1 # ''' +''''which python >/dev/null && exec python -u "$0" "$@" >> $LOG 2>&1 # ''' # Copyright (C) 2014-2015 Nginx, Inc.