${DOM} with underscore

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.3
Webmin version 2.101
Virtualmin version 7.7

Hi, is there going to be a variable like ${DOM} that replaces the dot with underscore?
eg. example.com > example_com.
This is useful for domain templates > default install scripts for me.

Thank you!

Why ? Domain names do not allow an underscore but allow a hyphen

Right, but in case of defining a default script installer (in template) there is useful to set the domain with underscore instead of dot, into the database field.
eg, in my case, i have the roundcube in the list of default script installer and i would like to have a variable like ${DOM_W_UNDERSCORE} in database name. real example; ${DOM_W_UNDERSCORE}_roundcube > “example_com_roundcube” as database name instead of "example.com_roundcube.

Apart from vanity I can see no reason can you explain the positive benefit of altering something that works. I guess the install scripts workout the optimal solution for installing a piece of software

I will just not add the roundcube in the Default Script Installer list.
Thank you for your time.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.