#!/bin/sh
MAX_USERS=200
if [ "$command" = "/CMD_ACCOUNT_USER" ] && [ "$action" = "create" ]; then
CURRENT_COUNT=`grep -c -e '^' /usr/local/directadmin/data/$creator/users.list`
if [ "$CURRENT_COUNT" -ge $MAX_USERS ]; then
echo "Reseller is currently at it's limit of $MAX_USERS";
exit 1;
fi
fi
exit 0;