These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Issue with Command to run before making changes to a domain on the new forum.
Hi,
I'm having an issue regarding the "Command to run before making changes to a domain" option withing the Virtualmin configuration. I've written a little script that changes around permissions on the virtualhomes for various reasons, which is done with the "Command to run after making changes to a domain" option.
To prepare the domains for those permissions (after every change) I wrote another script that resets them before the changes, using the "Command to run before making changes to a domain". The script executes, but I don't have access to the environment variables (VIRTUALSERVER_HOME for example).
Is this a known bug? And is there a workaround/patch available?
Thx :)