Replaced bash-specific redirections.

This commit is contained in:
Vladimir Homutov 2017-12-22 15:02:12 +03:00
parent 18e0b9c29c
commit 8d187d9acf
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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.