1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00

fix ynh_composer_exec

This commit is contained in:
yalh76 2020-06-12 04:01:09 +02:00 committed by tituspijean
parent 62001214b0
commit 5bf6517e65
2 changed files with 5 additions and 10 deletions

View file

@ -148,16 +148,13 @@ ynh_script_progression --message="Installing composer dependencies..."
ynh_exec_warn_less ynh_install_composer --phpversion="$phpversion" --workdir="$final_path"
# Set Flarum version
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path \
--commands="require flarum/core:$core_version --prefer-lowest --no-update"
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path --commands="require flarum/core:$core_version --prefer-lowest --no-update"
# Require SSOwat extension
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path \
--commands="require tituspijean/flarum-ext-auth-ssowat:$ssowat_version --no-update"
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path --commands="require tituspijean/flarum-ext-auth-ssowat:$ssowat_version --no-update"
# Update and download dependencies
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path \
--commands="update"
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path --commands="update"
#=================================================
# FLARUM POST-INSTALL

View file

@ -218,10 +218,8 @@ then
# Perform migrations and clear cache
pushd $final_path
ynh_script_progression --message="Upgrading Flarum and its extensions..." --weight=1
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path \
--commands="require tituspijean/flarum-ext-auth-ssowat:$ssowat_version --no-update"
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path \
--commands="require flarum/core:$core_version --prefer-dist --update-no-dev -a --update-with-all-dependencies"
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path --commands="require tituspijean/flarum-ext-auth-ssowat:$ssowat_version --no-update"
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path --commands="require flarum/core:$core_version --prefer-dist --update-no-dev -a --update-with-all-dependencies"
exec_as $app php$phpversion flarum migrate
exec_as $app php$phpversion flarum cache:clear
popd