From 08ad9dde5f6e37c4c6989adc7689bd9027dabd3f Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 3 May 2024 22:42:45 +0200 Subject: [PATCH] Update install --- scripts/install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/install b/scripts/install index b252063..dbdbe78 100755 --- a/scripts/install +++ b/scripts/install @@ -81,6 +81,13 @@ ynh_add_config --template=".env" --destination="$install_dir/.env" chmod 600 $install_dir/.env chown $app:$app $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" + #================================================= # DEPLOY #=================================================