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.

Recursive chmod in custom addon

Discussion in 'cPanel Developers' started by jsegars, May 23, 2006.

  1. jsegars

    jsegars Registered

    Joined:
    Nov 23, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I've been creating a custom addon for the TYPO3 CMS and as part of its install I need perform a recursive chmod on several directories.

    From the cpAddOn documentation, it looks like adding the following entries in the meta_info reference table should do the trick...

    Code:
    	
    chmod_recursively => 1,
    chmod => {
      '0777' => [qw(typo3conf/ typo3temp/ uploads/ fileadmin/)],
    },
    
    When I run the installer, however, only the top level directories are chmodded correctly and there is no recursion into subdirectories.

    Any suggestions on what I might be missing or anyone who has a recursive chmod working correctly? It seems that none of the default add ons use this feature.

    Thanks,
    Jeff
     
  2. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    more than 2 years later and the problem still exists
    I submitted it to bugzilla, #8101 maybe in next 2 years will be fixed. :P
     
  3. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    3
    Trophy Points:
    18
    > more than 2 years later and the problem still exists

    The forums are not an official problem reporting mechanism.

    Anywho, simply:

    change 'chmod_recursively' to 'chmod_recursive'.

    Let me know how that works for you.

    I'll have the documentation fixed ASAP
     
  4. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    3
    Trophy Points:
    18
    documentation on the site has been updated, thanks
     
  5. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    Yes, it works. Thank you!

    PS. I know forum is not for official support but is easier to ask a question here rather than sending a support ticket.
     
  6. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    3
    Trophy Points:
    18
    You're welcome, thanks for letting me know

    No worries, I just mentioned it since there was apparent frustration that its been a problem for 2 years with no feedback from us.

    I just don't want anyone to feel ignored, I'd just never heard about it :)
     

Share This Page