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:
parent
62001214b0
commit
5bf6517e65
2 changed files with 5 additions and 10 deletions
|
@ -148,16 +148,13 @@ ynh_script_progression --message="Installing composer dependencies..."
|
||||||
ynh_exec_warn_less ynh_install_composer --phpversion="$phpversion" --workdir="$final_path"
|
ynh_exec_warn_less ynh_install_composer --phpversion="$phpversion" --workdir="$final_path"
|
||||||
|
|
||||||
# Set Flarum version
|
# Set Flarum version
|
||||||
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path \
|
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path --commands="require flarum/core:$core_version --prefer-lowest --no-update"
|
||||||
--commands="require flarum/core:$core_version --prefer-lowest --no-update"
|
|
||||||
|
|
||||||
# Require SSOwat extension
|
# Require SSOwat extension
|
||||||
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path \
|
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path --commands="require tituspijean/flarum-ext-auth-ssowat:$ssowat_version --no-update"
|
||||||
--commands="require tituspijean/flarum-ext-auth-ssowat:$ssowat_version --no-update"
|
|
||||||
|
|
||||||
# Update and download dependencies
|
# Update and download dependencies
|
||||||
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path \
|
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path --commands="update"
|
||||||
--commands="update"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# FLARUM POST-INSTALL
|
# FLARUM POST-INSTALL
|
||||||
|
|
|
@ -218,10 +218,8 @@ then
|
||||||
# Perform migrations and clear cache
|
# Perform migrations and clear cache
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
ynh_script_progression --message="Upgrading Flarum and its extensions..." --weight=1
|
ynh_script_progression --message="Upgrading Flarum and its extensions..." --weight=1
|
||||||
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path \
|
ynh_composer_exec --user=$app --phpversion=$phpversion --workdir=$final_path --commands="require tituspijean/flarum-ext-auth-ssowat:$ssowat_version --no-update"
|
||||||
--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 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 migrate
|
||||||
exec_as $app php$phpversion flarum cache:clear
|
exec_as $app php$phpversion flarum cache:clear
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Reference in a new issue