webbuild cgi: silence standard error in some tac and grep commands to avoid filling webserver error log
This commit is contained in:
parent
9367503886
commit
c23ffef2a9
@ -29,7 +29,7 @@ USER_ADMIN=
|
||||
USER_CANMAINTAIN=
|
||||
USER_CANSENDMESSAGES=
|
||||
USER=${USER/.*\/}
|
||||
if [ "$SECRET" -a "$USER" ]; then
|
||||
if [ "$USER" ]; then
|
||||
if [ -r "$WEBBUILD_STATEDIR/users/$USER.conf" ]; then
|
||||
. $WEBBUILD_STATEDIR/users/$USER.conf
|
||||
fi
|
||||
@ -83,7 +83,6 @@ if [ "$SECRET" -a "$USER" ]; then
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$USER_ENABLED" != "1" ]; then
|
||||
echo -n "<environments> </environments>"
|
||||
echo -n "<speccreate> </speccreate>"
|
||||
@ -189,9 +188,9 @@ if [ "$REQUEST" = "refresh" -o ! "$USER" ]; then
|
||||
count=0
|
||||
if [ ! "$FROMID" -o "$FROMID" = "0" -o "$FROMID" = "NaN" ]; then
|
||||
if [ "$USER" ]; then
|
||||
line=`tac $WEBBUILD_STATEDIR/social_log | grep -v " SUSER=$USER " | head -n 25 | tail -n 1`
|
||||
line=`tac $WEBBUILD_STATEDIR/social_log 2>/dev/null | grep -v " SUSER=$USER " 2>/dev/null | head -n 25 | tail -n 1`
|
||||
else
|
||||
line=`tac $WEBBUILD_STATEDIR/social_log | grep -v " STARGET=developers " | head -n 25 | tail -n 1`
|
||||
line=`tac $WEBBUILD_STATEDIR/social_log 2>/dev/null | grep -v " STARGET=developers " 2>/dev/null | head -n 25 | tail -n 1`
|
||||
fi
|
||||
eval $line
|
||||
FROMID=$SID
|
||||
|
Loading…
Reference in New Issue
Block a user