forked from I2P_Developers/i2p.i2p
i2prouter: fix block location (thanks k0e)
This commit is contained in:
@@ -647,11 +647,6 @@ checkUser() {
|
|||||||
# Check the configured user. If necessary rerun this script as the desired user.
|
# Check the configured user. If necessary rerun this script as the desired user.
|
||||||
if [ "X$RUN_AS_USER" != "X" ]
|
if [ "X$RUN_AS_USER" != "X" ]
|
||||||
then
|
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
|
# Resolve the location of the 'id' command
|
||||||
IDEXE="/usr/xpg4/bin/id"
|
IDEXE="/usr/xpg4/bin/id"
|
||||||
@@ -665,6 +660,11 @@ checkUser() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
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" ]
|
if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
|
||||||
then
|
then
|
||||||
|
Reference in New Issue
Block a user