Hello,
I don't want resellers to be able to give more than one domain usage to one user, and users to add more than one domain to their user accounts.
I've edited;
/usr/local/directadmin/scripts/custom/all_pre.sh
To include;
But this broke several things like;
modify user username - function
public - private symbolic linking
Etc.
Any pointers to how i should do this?
I don't want resellers to be able to give more than one domain usage to one user, and users to add more than one domain to their user accounts.
I've edited;
/usr/local/directadmin/scripts/custom/all_pre.sh
To include;
Code:
#Only permit 1 domain to a user#
if [ "$command" = "/CMD_ACCOUT_USER" ] || [ "$command" = "/CMD_MODIFY_USER" ] || [ "$command" = "/CMD_MANAGE_USER_PACKAGES" ] || [ "$command" = "/CMD_DOMAIN" ]; then
if [ "$vdomains" != 1 ]; then
echo "You cannot add mode than one domain to a user account"
exit 1
fi
fi
But this broke several things like;
modify user username - function
public - private symbolic linking
Etc.
Any pointers to how i should do this?