fix(installer) : php template and directory create by user
This commit is contained in:
parent
a882e8ab2b
commit
350cd9d982
2 changed files with 7 additions and 6 deletions
|
@ -1,6 +1,8 @@
|
||||||
[<?=$this->e($user)?>]
|
[<?=$this->e($user)?>]
|
||||||
user = <?=$this->e($user)?>
|
user = <?=$this->e($user)?>
|
||||||
|
|
||||||
group = <?=$this->e($user)?>
|
group = <?=$this->e($user)?>
|
||||||
|
|
||||||
listen = /var/run/php-fpm-<?=$this->e($user)?>.sock
|
listen = /var/run/php-fpm-<?=$this->e($user)?>.sock
|
||||||
listen.owner = www-data
|
listen.owner = www-data
|
||||||
listen.group = www-data
|
listen.group = www-data
|
||||||
|
|
|
@ -220,12 +220,11 @@ function removePhpFpmConfig($user)
|
||||||
function copyYesWikiFiles($domain, $user)
|
function copyYesWikiFiles($domain, $user)
|
||||||
{
|
{
|
||||||
$destDir = '/home'.'/'.$user.'/'.$domain;
|
$destDir = '/home'.'/'.$user.'/'.$domain;
|
||||||
exec('mkdir -p '.$destDir, $output);
|
exec('sudo -u '.$user.' mkdir -p '.$destDir, $output);
|
||||||
exec('mkdir -p '.$destDir.'/cache', $output);
|
// exec('sudo -u '.$user.' mkdir -p '.$destDir.'/cache', $output);
|
||||||
exec('mkdir -p '.$destDir.'/custom', $output);
|
// exec('sudo -u '.$user.' mkdir -p '.$destDir.'/custom', $output);
|
||||||
exec('mkdir -p '.$destDir.'/files', $output);
|
// exec('sudo -u '.$user.' mkdir -p '.$destDir.'/files', $output);
|
||||||
exec('mkdir -p '.$destDir.'/files', $output);
|
// TODO : install yeswiki from source
|
||||||
// TODO : handle errors
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue