From 0b05cd761cc94df808ce75c710ffc3bba262c7f7 Mon Sep 17 00:00:00 2001 From: kytv <kytv@mail.i2p> Date: Fri, 23 Nov 2012 18:08:04 +0000 Subject: [PATCH] i2prouter: fix block location (thanks k0e) --- installer/resources/i2prouter | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/installer/resources/i2prouter b/installer/resources/i2prouter index 2316001da8..cdf3e7127b 100644 --- a/installer/resources/i2prouter +++ b/installer/resources/i2prouter @@ -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 -- GitLab