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:
parent
405a0e8c4a
commit
a55a6fd96c
2 changed files with 8 additions and 0 deletions
|
@ -176,6 +176,8 @@ ynh_exec_warn_less ynh_install_composer --phpversion="$phpversion" --workdir="$f
|
|||
#=================================================
|
||||
ynh_script_progression --message="Deploying..."
|
||||
|
||||
update-alternatives --set php /usr/bin/php$phpversion
|
||||
|
||||
pushd "$final_path"
|
||||
ynh_use_nodejs
|
||||
yarn install
|
||||
|
@ -197,6 +199,8 @@ pushd "$final_path"
|
|||
php$phpversion artisan config:clear
|
||||
popd
|
||||
|
||||
update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION}
|
||||
|
||||
#=================================================
|
||||
# STORE THE CONFIG FILE CHECKSUM
|
||||
#=================================================
|
||||
|
|
|
@ -196,6 +196,8 @@ ynh_add_config --template="../conf/.env" --destination="$config"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Deploying..."
|
||||
|
||||
update-alternatives --set php /usr/bin/php$phpversion
|
||||
|
||||
pushd "$final_path"
|
||||
ynh_use_nodejs
|
||||
yarn install
|
||||
|
@ -241,6 +243,8 @@ if ynh_version_gt "2.15.0" "${previous_version}" ; then
|
|||
popd
|
||||
fi
|
||||
|
||||
update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION}
|
||||
|
||||
#=================================================
|
||||
# STORE THE CONFIG FILE CHECKSUM
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue