Is there a complete list of the variables mentioned in the help bubble for:
Server Settings, Virtualmin Configuration, Actions upon server and user creation, Command to run after making changes to a server
somewhere?:
(Note that it says “VIRTUALSERVER_HOME, VIRTUALSERVER_PASS, and more”… I am looking for the “and more”.)
And (even better) possibly some instructions on how to use them exactly?
I found my way to this list:
https://www.virtualmin.com/docs/development/template-variables
But this isn’t really a template and trying to use $DB (from that list) like this:
virtualmin install-script --domain $VIRTUALSERVER_DOM --type roundcube --version 1.6.10 --path / --db mysql $DB
resulted in a no-such-database error:
I took a guess at this:
virtualmin install-script --domain $VIRTUALSERVER_DOM --type roundcube --version 1.6.10 --path / --db mysql $VIRTUALSERVER_DB
But it did nothing at all (no error on virtual server creation, no line for trying to run a post-creation command all).
Further, the help bubble has a list of virtualmin operations:
That may or may not imply that these could be run only on a server-creation, not on a server deletion (which would no doubt cause an error if my example actually worked at creation).
Or is the idea that I must have it run /some-path/something.sh (it seems not because the help says “can be a script” and it’s not called “Script to run after…”)?
Either way, knowing the variables list and the basic idea/syntax would be help. I feel like it must be in the documentation somewhere, it’s just that no search or menu I’ve tried has it hiding there.
Thanks.
SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu 24.04 |
Virtualmin version | 7.30.8 |