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 Command to run after making changes to server runs without variable on the new forum.
I've been trying to get the "Command to run after making changes to server" to run. It runs but doesn't seem to receive the variable provided in Virtualmin's Module Configuration. Documentation seems to indicate that the variable ${DOM} should work here.
The config line is: /usr/local/bin/postcreate ${DOM}
The script itself is a shell script. If I add the variable ${DOM} to the shell script the same issue happens.
The command runs correctly from command-shell when I substitute a domain for ${DOM}.
The logging I've added indicates that it's getting called but doesn't receive the variable from Virtualmin.