1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monica_ynh.git synced 2024-09-03 19:46:23 +02:00

Fix php for yarn

This commit is contained in:
yalh76 2021-05-23 12:11:45 +02:00
parent 405a0e8c4a
commit a55a6fd96c
2 changed files with 8 additions and 0 deletions

View file

@ -176,6 +176,8 @@ ynh_exec_warn_less ynh_install_composer --phpversion="$phpversion" --workdir="$f
#================================================= #=================================================
ynh_script_progression --message="Deploying..." ynh_script_progression --message="Deploying..."
update-alternatives --set php /usr/bin/php$phpversion
pushd "$final_path" pushd "$final_path"
ynh_use_nodejs ynh_use_nodejs
yarn install yarn install
@ -197,6 +199,8 @@ pushd "$final_path"
php$phpversion artisan config:clear php$phpversion artisan config:clear
popd popd
update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION}
#================================================= #=================================================
# STORE THE CONFIG FILE CHECKSUM # STORE THE CONFIG FILE CHECKSUM
#================================================= #=================================================

View file

@ -196,6 +196,8 @@ ynh_add_config --template="../conf/.env" --destination="$config"
#================================================= #=================================================
ynh_script_progression --message="Deploying..." ynh_script_progression --message="Deploying..."
update-alternatives --set php /usr/bin/php$phpversion
pushd "$final_path" pushd "$final_path"
ynh_use_nodejs ynh_use_nodejs
yarn install yarn install
@ -241,6 +243,8 @@ if ynh_version_gt "2.15.0" "${previous_version}" ; then
popd popd
fi fi
update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION}
#================================================= #=================================================
# STORE THE CONFIG FILE CHECKSUM # STORE THE CONFIG FILE CHECKSUM
#================================================= #=================================================