Issue with Command to run before making changes to a domain

1 post / 0 new
#1 Fri, 01/13/2017 - 04:07
WillyWonka

Issue with Command to run before making changes to a domain

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 :)