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?