1
0
Fork 0
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:
Florian 2022-01-24 04:57:04 +03:00 committed by GitHub
commit f577a55539
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}
} }
#================================================= #=================================================