From: Jamie C. <jca...@we...> - 2009-04-29 23:58:20
|
On 29/Apr/2009 15:14 Joaquim Homrighausen wrote .. > Hmm.. I'm missing something no doubt :-) > > I have a skeleton directory specified for a given VM server template. > > If I click on help for the variable substitution option, I read: > > "Substitute variables in contents? > When this option is enabled, any files copied from the skeleton > directory above will have variables like ${DOM}, ${USER}, ${IP} and so > on replaced by the domain name, username and IP respectively." > > I take this to mean that Webmin will actually scan the copied files for > any "macros" and replace them with their respective content if any. Is > that not correct? > > I put the following in a .php file that's located in the skeleton directory: > > $dbuser = '${USER}'; > $dbpass = '${PASS}'; > > But after the VM configuration/setup is done for a new site, the copied > files (in the target directory structure) still contain the same, > unsubstituted variables. Yes, that should work .. at least, it does for me. Do substitutions work for .html files? - Jamie |