diff --git a/scripts/restore b/scripts/restore index 787e19b..4619525 100755 --- a/scripts/restore +++ b/scripts/restore @@ -17,6 +17,7 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$install_dir" +chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 1b84a97..ffd974b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -32,6 +32,7 @@ then ynh_setup_source --dest_dir="$install_dir" #--keep='.env' fi +chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #=================================================