i2prouter: fix block location (thanks k0e)

This commit is contained in:
kytv
2012-11-23 18:08:04 +00:00
parent 28ba7880e4
commit 0b05cd761c

View File

@@ -647,11 +647,6 @@ checkUser() {
# Check the configured user. If necessary rerun this script as the desired user.
if [ "X$RUN_AS_USER" != "X" ]
then
if [ "`$IDEXE -u -n "$RUN_AS_USER" 2>/dev/null`" != "$RUN_AS_USER" ]
then
echo 'User $RUN_AS_USER does not exist.'
exit 1
fi
# Resolve the location of the 'id' command
IDEXE="/usr/xpg4/bin/id"
@@ -665,6 +660,11 @@ checkUser() {
exit 1
fi
fi
if [ "`$IDEXE -u -n "$RUN_AS_USER" 2>/dev/null`" != "$RUN_AS_USER" ]
then
echo 'User $RUN_AS_USER does not exist.'
exit 1
fi
if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
then