From ddd45f5c1d25a883c0c1b7c55d614b8acb148ea4 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 6 Aug 2021 09:01:40 +0200 Subject: [PATCH] Fix --- scripts/restore | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/restore b/scripts/restore index e44498e..7b71cd0 100755 --- a/scripts/restore +++ b/scripts/restore @@ -71,6 +71,11 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" +chmod -R g+w $final_path/app/config/ +chmod -R g+w $final_path/media/files/ +chmod -R g+w $final_path/media/images/ +chmod -R g+w $final_path/translations/ + #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= @@ -93,6 +98,7 @@ ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./ ynh_script_progression --message="Restoring various files..." --weight=1 ynh_restore_file --origin_path="/etc/cron.d/$app" +chmod 644 "/etc/cron.d/$app" #================================================= # GENERIC FINALIZATION