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 permissions setter during restore

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

View file

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