1
0
Fork 0
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:
Florian 2022-01-24 04:52:49 +03:00 committed by GitHub
parent 0196c40c10
commit 11f4b5ef5e
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}
} }
#================================================= #=================================================