From 24c8cfa286d0b2ea6111058e840d01c92cec26ca Mon Sep 17 00:00:00 2001 From: BenoitCier Date: Wed, 31 Mar 2021 14:32:00 +0200 Subject: [PATCH] fix bug upgrade old version --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 7a4daee..7896937 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -84,6 +84,9 @@ then ynh_script_progression --message="Upgrading upgrade to 0.8.5" --weight=5 # Download, check integrity, uncompress and patch the source from 0.8.5.src ynh_setup_source --dest_dir="$final_path" --source_id="0.8.5" + # Set permissions on app files + chown $app:$app $final_path -R + chmod 755 $final_path -R ynh_add_nginx_config ynh_add_fpm_config --package="$extra_php_dependencies" phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) @@ -102,6 +105,9 @@ then ynh_script_progression --message="Upgrading upgrade to 0.9.8" --weight=5 # Download, check integrity, uncompress and patch the source from 0.9.8.src ynh_setup_source --dest_dir="$final_path" --source_id="0.9.8" + # Set permissions on app files + chown $app:$app $final_path -R + chmod 755 $final_path -R ynh_add_nginx_config ynh_add_fpm_config --package="$extra_php_dependencies" phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)