Fix permissions

This commit is contained in:
Josué Tille 2024-09-02 21:30:21 +02:00
parent 9f50f2539e
commit 053b6388e8
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -47,8 +47,10 @@ install_source() {
}
set_permission() {
chown "$app:$app" "$install_dir"
chmod u=rwx,g=rx,o= "$install_dir"
chown -R "$app:$app" "$install_dir"/{conf,ccnet}
chmod -R u+rwX,g-w,o= "$install_dir"/{conf,ccnet}
chmod -R u+rwX,g+rX-w,o= "$install_dir"/{conf,ccnet}
chown -R "$app:$app" "$install_dir"/seafile_image/opt/seafile
chmod -R u+rwX,g-w,o= "$install_dir"/seafile_image/opt/seafile
@ -67,6 +69,7 @@ set_permission() {
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
chmod u=rwx,g=rx,o= "$data_dir"
find "$data_dir" \( \! -perm -o= \
-o \! -user "$app" \
-o \! -group "$app" \) \