1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

[enh] Faster permission setter during install after a remove

This commit is contained in:
ljf (zamentur) 2023-12-08 22:24:00 +01:00 committed by GitHub
parent 5ac2acca79
commit 2b62da0138
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -336,10 +336,8 @@ ynh_multimedia_addaccess $app
# Fix app ownerships & permissions
chown -R $app:www-data "$final_path"
chown -R $app: "$datadir"
find $final_path/ -type f -print0 | xargs -r0 chmod 0644
find $final_path/ -type d -print0 | xargs -r0 chmod 0755
find $datadir/ -type f -print0 | xargs -r0 chmod 0640
find $datadir/ -type d -print0 | xargs -r0 chmod 0750
chmod -R a=r,u+w,a+X $final_path/
chmod -R a=r,u+w,a+X $datadir/
chmod 640 "$final_path/config/config.php"
chmod 755 /home/yunohost.app
chmod 750 $final_path