From 207e16a920ded7e655e2b82825412e20a533d039 Mon Sep 17 00:00:00 2001 From: bedefaced Date: Mon, 21 Aug 2017 22:15:42 +0300 Subject: [PATCH] adduser fix (return if exists, instead of exit) --- ipsec/adduser.sh | 3 ++- pptp/adduser.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ipsec/adduser.sh b/ipsec/adduser.sh index 7f20c35..6671aab 100755 --- a/ipsec/adduser.sh +++ b/ipsec/adduser.sh @@ -41,7 +41,8 @@ do : ${ANSREM:=$NOTREM} if [ "$NOTREM" == "$ANSREM" ]; then - exit 1 + unset LOGIN PASSWORD + continue else $DIR/deluser.sh $LOGIN DELETED=1 diff --git a/pptp/adduser.sh b/pptp/adduser.sh index eac7536..c27b379 100755 --- a/pptp/adduser.sh +++ b/pptp/adduser.sh @@ -41,7 +41,8 @@ do : ${ANSREM:=$NOTREM} if [ "$NOTREM" == "$ANSREM" ]; then - exit 1 + unset LOGIN PASSWORD + continue else $DIR/deluser.sh $LOGIN DELETED=1