From e206eac4ba1b652c24ce62a807db414777b5ec66 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 3 May 2024 22:55:08 +0200 Subject: [PATCH] fix php version --- scripts/upgrade | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index aea1ed3..2766be4 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -102,6 +102,13 @@ ynh_backup_if_checksum_is_different --file="$install_dir/.env" ynh_add_config --template=".env" --destination="$install_dir/.env" +#================================================== +# FIX PHP VERSION +#================================================== +ynh_script_progression --message="Fixing php version in package.json..." --weight=1 + +ynh_replace_string --target_file="$install_dir/package.json" --match_string="php artisan lang:generate -vvv" --replace_string="php$phpversion artisan lang:generate -vvv" + #================================================= # DEPLOYMENT #=================================================