adduser fix (return if exists, instead of exit)

master
bedefaced 8 years ago committed by bedefaced
parent eaf01d91ad
commit 207e16a920
  1. 3
      ipsec/adduser.sh
  2. 3
      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

@ -41,7 +41,8 @@ do
: ${ANSREM:=$NOTREM}
if [ "$NOTREM" == "$ANSREM" ]; then
exit 1
unset LOGIN PASSWORD
continue
else
$DIR/deluser.sh $LOGIN
DELETED=1

Loading…
Cancel
Save