mirror of
https://github.com/YunoHost-Apps/yeswiki_ynh.git
synced 2024-09-03 18:05:56 +02:00
Merge pull request #46 from YunoHost-Apps/testing
fix(security): file permissions only to user, add www-data group
This commit is contained in:
commit
f577a55539
1 changed files with 2 additions and 3 deletions
|
@ -23,9 +23,8 @@ yeswiki_update_dir_rights() {
|
|||
local app="${1:-yeswiki}"
|
||||
local final_path="${2}"
|
||||
|
||||
chown -R $app:$app $final_path
|
||||
chmod -R u=rwX,g=rX,o=rX $final_path
|
||||
chmod -R g+rwX,o+rwX $final_path/{cache,files}
|
||||
chown -R $app:www-data $final_path
|
||||
chmod -R u=rwx,g=rx,o-rwx $final_path
|
||||
}
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue