Wondering if there is a way to automatically prepend the reseller's username to any package that they might create.
I've tried doing this through a package_write_pre.sh hook, but apparently the variables (name and package_filename) are already passed to the system before package_write_pre.sh is triggered, so you can't manipulate the variables there.
I then tried doing this though a package_write_post.sh hook, to move things around after the package has been written, but either the file /usr/local/directadmin/data/users/%reseller%/packages.list is not writable at this stage or it gets overwritten after package_write_post.sh is triggered.
Just wondering if there is something I might be missing.
I've tried doing this through a package_write_pre.sh hook, but apparently the variables (name and package_filename) are already passed to the system before package_write_pre.sh is triggered, so you can't manipulate the variables there.
I then tried doing this though a package_write_post.sh hook, to move things around after the package has been written, but either the file /usr/local/directadmin/data/users/%reseller%/packages.list is not writable at this stage or it gets overwritten after package_write_post.sh is triggered.
Just wondering if there is something I might be missing.