Hello,
You can just change that command to:
- Code: Select all
$this->chmod("inc",0707,0707,true);
That will tell Installatron to chmod files 0707, directories 0707, and perform the action recursively. We recommend using this method.
There is also a hook file:
- Code: Select all
/usr/local/installatron/etc/hook_install.php
This file must be owned by root.
$this->install->ini["path"] provides the path to the install, and
$this->install->ini["installer"] identifies the name of the app. For example this might work (untested):
- Code: Select all
<?php
if ( $this->install->ini["installer"] === "drupal" )
{
exec("chmod -R 707 ".escapeshellarg($this->install->ini["path"]."/inc"));
}
If there are any questions let us know.
Thank you,
Phil.