The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using domain variables in skeleton directory?

Discussion in 'General Discussion' started by mjm, Aug 8, 2003.

  1. mjm

    mjm BANNED

    Joined:
    Aug 1, 2003
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Are any variables passed into the skeleton directory when setting up accounts? I would like to set up some default files but need to use some the domain name for it.

    i assume it just runs a cp command, but it doesnt hurt to ask....

    cPanel.net Support Ticket Number: 666
     
  2. jcsolutions

    jcsolutions Well-Known Member

    Joined:
    Nov 4, 2002
    Messages:
    184
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    If you know how to write scripts, you want to use the wwwacct's postwwwacct feature. In wwwacct there is a couple lines:
    if (-e "/scripts/postwwwacct") {
    system("/scripts/postwwwacct",@ARGV);
    }

    If a postwwwacct script exists, it will pass variables to it and run it. You can make that script do whatever you want.
     
Loading...

Share This Page