diff --git a/scripts/upgrade b/scripts/upgrade index 21a636b..c61544d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -89,12 +89,15 @@ then ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" + ynh_setup_source --dest_dir="$final_path/git_src" fi +ynh_secure_remove $final_path/www/install chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" +find $final_path/www -type d -exec chmod 755 {} \; +find $final_path/www -type f -exec chmod 644 {} \; #================================================= # MYSQL CONFIGURATION