search for: myexits

Displaying 1 result from an estimated 1 matches for "myexits".

Did you mean: myexists
2008 Dec 16
0
Serve N files from a directory that may or may not exist
...list, Here''s my files directory in my apache module: files | +-> ted.haha.com bob.haha.com etc.haha.com I have a custom myexists function that returns boolean. I''d like to check for a vhosts directory underneath each of those $fqdn directories, i.e., if myexits("/var/puppet/modules/apache/files/${fqdn}/vhosts") { # serve every file in that directory to /etc/httpd/vhosts } else { # do nothing } I want it to be dynamic. If a file is in that dir, then write it out the host''s /etc/httpd/vhosts The files will be named things like www....