Command to run after making changes to server runs without variable

1 post / 0 new
#1 Sat, 02/24/2007 - 15:39
DuncanH

Command to run after making changes to server runs without variable

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.