adduser fix (return if exists, instead of exit)
This commit is contained in:
parent
eaf01d91ad
commit
207e16a920
@ -41,7 +41,8 @@ do
|
|||||||
: ${ANSREM:=$NOTREM}
|
: ${ANSREM:=$NOTREM}
|
||||||
|
|
||||||
if [ "$NOTREM" == "$ANSREM" ]; then
|
if [ "$NOTREM" == "$ANSREM" ]; then
|
||||||
exit 1
|
unset LOGIN PASSWORD
|
||||||
|
continue
|
||||||
else
|
else
|
||||||
$DIR/deluser.sh $LOGIN
|
$DIR/deluser.sh $LOGIN
|
||||||
DELETED=1
|
DELETED=1
|
||||||
|
|||||||
@ -41,7 +41,8 @@ do
|
|||||||
: ${ANSREM:=$NOTREM}
|
: ${ANSREM:=$NOTREM}
|
||||||
|
|
||||||
if [ "$NOTREM" == "$ANSREM" ]; then
|
if [ "$NOTREM" == "$ANSREM" ]; then
|
||||||
exit 1
|
unset LOGIN PASSWORD
|
||||||
|
continue
|
||||||
else
|
else
|
||||||
$DIR/deluser.sh $LOGIN
|
$DIR/deluser.sh $LOGIN
|
||||||
DELETED=1
|
DELETED=1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user