Fix permission for data_dir for www-data

This commit is contained in:
Josué Tille 2024-04-21 15:23:01 +02:00
parent 174fa19944
commit 2dbb8fbe02
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -82,6 +82,7 @@ set_permission() {
# At install time theses directory are not available
test -e $install_dir/seafile-server-$seafile_version/seahub && setfacl -m user:www-data:rX $install_dir/seafile-server-$seafile_version/seahub
test -e $install_dir/seafile-server-$seafile_version/seahub/media && setfacl -R -m user:www-data:rX $install_dir/seafile-server-$seafile_version/seahub/media
test -e $install_dir/seahub-data && setfacl -m user:www-data:rX $data_dir
test -e $install_dir/seahub-data && setfacl -R -m user:www-data:rX $data_dir/seahub-data
find $data_dir \( \! -perm -o= \