diff --git a/scripts/upgrade b/scripts/upgrade index 7b0ebed..37afa9f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -56,10 +56,13 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=3 + ynh_secure_remove --file="$final_path" # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" fi +ynh_install_composer --install_args="--ignore-platform-reqs" + chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" @@ -92,10 +95,10 @@ ynh_add_fpm_config #================================================= ynh_script_progression --message="Updating a configuration file..." --weight=1 -ynh_add_config --template="../conf/qcm-dist.conf" --destination="$final_path/conf/qcm-dist.conf" +ynh_add_config --template="../conf/qcm-dist.conf" --destination="$final_path/conf/qcm.php" -chmod 400 "$final_path/conf/qcm-dist.conf" -chown $app:$app "$final_path/conf/qcm-dist.conf" +chmod 400 "$final_path/conf/qcm.php" +chown $app:$app "$final_path/conf/qcm.php" #================================================= # GENERIC FINALIZATION