check users do not show delete from group if nothing has to be done
This commit is contained in:
@@ -73,8 +73,10 @@ for user in $(cat /etc/group|grep "${ssh_group}:" | cut -d ":" -f 4 | sed -e 's/
|
|||||||
fi;
|
fi;
|
||||||
printf "* Checking user %-20s: %s\n" "${user}" "${out_string}";
|
printf "* Checking user %-20s: %s\n" "${user}" "${out_string}";
|
||||||
done;
|
done;
|
||||||
echo "--------------------->"
|
if [ ! -z "${delete_accounts}" ]; then
|
||||||
echo ${delete_accounts};
|
echo "--------------------->"
|
||||||
|
echo ${delete_accounts};
|
||||||
|
fi;
|
||||||
echo "[END] ===============>"
|
echo "[END] ===============>"
|
||||||
|
|
||||||
# __END__
|
# __END__
|
||||||
|
|||||||
Reference in New Issue
Block a user