mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Fix permissions
This commit is contained in:
parent
9f50f2539e
commit
053b6388e8
1 changed files with 4 additions and 1 deletions
|
@ -47,8 +47,10 @@ install_source() {
|
||||||
}
|
}
|
||||||
|
|
||||||
set_permission() {
|
set_permission() {
|
||||||
|
chown "$app:$app" "$install_dir"
|
||||||
|
chmod u=rwx,g=rx,o= "$install_dir"
|
||||||
chown -R "$app:$app" "$install_dir"/{conf,ccnet}
|
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
|
chown -R "$app:$app" "$install_dir"/seafile_image/opt/seafile
|
||||||
chmod -R u+rwX,g-w,o= "$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 -m user:www-data:rX "$data_dir"
|
||||||
test -e "$install_dir"/seahub-data && setfacl -R -m user:www-data:rX "$data_dir"/seahub-data
|
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= \
|
find "$data_dir" \( \! -perm -o= \
|
||||||
-o \! -user "$app" \
|
-o \! -user "$app" \
|
||||||
-o \! -group "$app" \) \
|
-o \! -group "$app" \) \
|
||||||
|
|
Loading…
Reference in a new issue