mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-12-26 01:57:30 +00:00
Merge pull request #124 from therunnergit/chown-local-user
Option to chown local user
This commit is contained in:
commit
58bf6f8f11
@ -8,3 +8,6 @@ cmsPath = tests/joomla-cms3
|
||||
|
||||
; If you want to clone a different branch, you can set it here
|
||||
branch = staging
|
||||
|
||||
; (Linux / Mac only) If you want to set a different owner for the CMS root folder, you can set it here.
|
||||
localUser = www-data
|
||||
|
@ -191,6 +191,13 @@ class RoboFile extends \Robo\Tasks
|
||||
}
|
||||
|
||||
$this->_copyDir('tests/cache', $this->cmsPath);
|
||||
|
||||
// Optionally change owner to fix permissions issues
|
||||
if (!empty($this->configuration->localUser) && !$this->isWindows())
|
||||
{
|
||||
$this->_exec('chown -R ' . $this->configuration->localUser . ' ' . $this->cmsPath);
|
||||
}
|
||||
|
||||
$this->say('Joomla CMS site created at ' . $this->cmsPath);
|
||||
|
||||
// Optionally uses Joomla default htaccess file. Used by TravisCI
|
||||
|
Loading…
Reference in New Issue
Block a user