diff --git a/scripts/restore b/scripts/restore index 0c9dd41..65fbe9a 100755 --- a/scripts/restore +++ b/scripts/restore @@ -16,6 +16,8 @@ source /usr/share/yunohost/helpers ynh_script_progression --message="Restoring the app main directory..." --weight=1 ynh_restore_file --origin_path="$install_dir" +chmod -R o-rwx "$install_dir" +chown -R "$app:www-data" "$install_dir" #================================================= # SPECIFIC RESTORATION