task.queue check for domains in domains.list file

Version 1.36

Bugfix
Finished

For User accounts with very large lists of domains, there have been rare reports of domains missing from the domains.list file after file creation. No definite cause could be found. We suspect possible file caching and delayed writes by the OS, but cannot confirm this. The only solution we could find to resolve this issue for these rare cases was to add a task.queue check to go through all domains owned by the User, as listed in /etc/virtual/domainowners, then check each of those values in /usr/local/directadmin/data/users/username/domains/domain.com.conf, to ensure they're domains, and not domain pointers. With that new list, compare to the domains.list file. If the number of values in the domains.list is lower than the new list created, add those new items to the domains list file. Note that this is not automatically run by DA. If you wish to use this check (which is for rare cases), create: /usr/local/directadmin/scripts/custom/domain_create_post.sh and put in the code: #!/bin/sh echo "action=confirm&type=domains.list&user=$username" >> /usr/local/directadmin/data/task.queue exit 0; and chmod the script to 755. As you may have suspected, you can also manually run that echo command to add the check to the task.queue for any given user you wish to check.

Interested to try DirectAdmin? Get a 30-day Free Trial!