Recursive chmod in custom addon

jsegars

Registered
Nov 23, 2005
3
0
151
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
 

d_t

Well-Known Member
Sep 20, 2003
243
1
168
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
 

cPDan

cPanel Staff
Staff member
Mar 9, 2004
716
8
243
> 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
 

cPDan

cPanel Staff
Staff member
Mar 9, 2004
716
8
243
documentation on the site has been updated, thanks
 

d_t

Well-Known Member
Sep 20, 2003
243
1
168
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.
 

cPDan

cPanel Staff
Staff member
Mar 9, 2004
716
8
243
Yes, it works. Thank you!
You're welcome, thanks for letting me know

PS. I know forum is not for official support but is easier to ask a question here rather than sending a support ticket.
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 :)
 
Thread starter Similar threads Forum Replies Date
Tcalp cPanel Developers 1