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:
parent
5ac2acca79
commit
2b62da0138
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue