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