ispman/lib create_vhost_directories.lib,1.13,1.14
Joerg Delker <[email protected]>
| Newsgroups | gmane.comp.isp.ispman.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ispman/ispman/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18885
Modified Files:
create_vhost_directories.lib
Log Message:
added example extention for automated vhost provisioning
(thanks to serving)
Index: create_vhost_directories.lib
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/create_vhost_directories.lib,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- create_vhost_directories.lib 30 May 2004 23:35:36 -0000 1.13
+++ create_vhost_directories.lib 28 Jun 2004 19:34:26 -0000 1.14
@@ -29,6 +29,26 @@
log_message("System: $_");
system($_) == 0 or return "ERROR: $?";
}
+
+ #
+ # Example for default vhost provisioning
+ #
+ #$domain = $home_directory;
+ #$domain =~ s/\/ispman\/domains\///;
+ #
+ #my @commands2 = ();
+ #for ("$home_directory/vhosts/$document_root") {
+ # push @commands2, "cat /opt/ispman/skel/index.html|sed -e \"s,\@\@DOMAIN\@\@,$vhost.$domain,\" > $_/index.html";
+ # push @commands2, "cp /opt/ispman/skel/eserve-logo.gif $_";
+ # push @commands2, "chown -R $owner $_";
+ # push @commands2, "chgrp -R $group $_";
+ #}
+ #
+ #for (@commands2) {
+ # print "Running: $_ \n";
+ # system($_) == 0 or return "ERROR: $?";
+ #}
+
return 1;
}
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com