diff --git a/scripts/install b/scripts/install index c36b120..c9e824a 100755 --- a/scripts/install +++ b/scripts/install @@ -306,6 +306,7 @@ ynh_multimedia_addaccess $app # Fix app ownerships & permissions chown -R $app: "$final_path" "$datadir" +chmod -R o-rwx "$final_path" find $final_path/ -type f -print0 | xargs -0 chmod 0644 find $final_path/ -type d -print0 | xargs -0 chmod 0755 find $datadir/ -type f -print0 | xargs -0 chmod 0640 diff --git a/scripts/restore b/scripts/restore index 44f8384..72a5e47 100755 --- a/scripts/restore +++ b/scripts/restore @@ -134,6 +134,7 @@ mkdir -p "$datadir" # Fix app ownerships & permissions chown -R $app: "$final_path" "$datadir" +chmod -R o-rwx "$final_path" chmod 640 "$final_path/config/config.php" chmod 755 /home/yunohost.app diff --git a/scripts/upgrade b/scripts/upgrade index 8968143..a53ffce 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -425,6 +425,7 @@ exec_occ background:cron # Fix app ownerships & permissions chown -R $app: "$final_path" "$datadir" +chmod -R o-rwx "$final_path" find $final_path/ -type f -print0 | xargs -0 chmod 0644 find $final_path/ -type d -print0 | xargs -0 chmod 0755 find $datadir/ -type f -print0 | xargs -0 chmod 0640