mirror of
https://github.com/YunoHost-Apps/roundcube_ynh.git
synced 2024-09-03 20:16:28 +02:00
fix: try to manage composer update correctly
This commit is contained in:
parent
dfe6ee58dc
commit
c913078c29
2 changed files with 6 additions and 6 deletions
|
@ -31,14 +31,15 @@ install_ldap_addressbook_contextmenu_plugins() {
|
||||||
|
|
||||||
# Install net_LDAP
|
# Install net_LDAP
|
||||||
export COMPOSER_ALLOW_SUPERUSER=1
|
export COMPOSER_ALLOW_SUPERUSER=1
|
||||||
ynh_composer_exec --commands="require kolab/net_ldap3"
|
ynh_composer_exec --commands="require kolab/net_ldap3 --update-with-all-dependencies"
|
||||||
|
|
||||||
# Install contextmenu and automatic_addressbook plugins
|
# Install contextmenu and automatic_addressbook plugins
|
||||||
# https://plugins.roundcube.net/packages/sblaisot/automatic_addressbook
|
# https://plugins.roundcube.net/packages/sblaisot/automatic_addressbook
|
||||||
# https://plugins.roundcube.net/packages/johndoh/contextmenu
|
# https://plugins.roundcube.net/packages/johndoh/contextmenu
|
||||||
ynh_composer_exec --commands="require \
|
ynh_composer_exec --commands="require \
|
||||||
johndoh/contextmenu $contextmenu_version \
|
johndoh/contextmenu $contextmenu_version \
|
||||||
sblaisot/automatic_addressbook $automatic_addressbook_version"
|
sblaisot/automatic_addressbook $automatic_addressbook_version \
|
||||||
|
--update-with-all-dependencies"
|
||||||
|
|
||||||
installed_plugins+=" 'contextmenu', 'automatic_addressbook',"
|
installed_plugins+=" 'contextmenu', 'automatic_addressbook',"
|
||||||
|
|
||||||
|
@ -48,7 +49,7 @@ install_ldap_addressbook_contextmenu_plugins() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install_carddav_plugin(){
|
install_carddav_plugin(){
|
||||||
ynh_composer_exec --commands="require roundcube/carddav $carddav_version --with-all-dependencies"
|
ynh_composer_exec --commands="require roundcube/carddav $carddav_version --update-with-all-dependencies"
|
||||||
|
|
||||||
carddav_tmp_config="../conf/carddav.config.inc.php"
|
carddav_tmp_config="../conf/carddav.config.inc.php"
|
||||||
carddav_server=0
|
carddav_server=0
|
||||||
|
|
|
@ -82,7 +82,9 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# CONFIGURE ROUNDCUBE
|
# CONFIGURE ROUNDCUBE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Updating Roundcube dependencies with Composer..." --weight=30
|
||||||
setup_composer_deps
|
setup_composer_deps
|
||||||
|
ynh_composer_exec --commands="update --no-dev"
|
||||||
|
|
||||||
ynh_script_progression --message="Configuring Roundcube..." --weight=2
|
ynh_script_progression --message="Configuring Roundcube..." --weight=2
|
||||||
configure_roundcube
|
configure_roundcube
|
||||||
|
@ -96,9 +98,6 @@ then
|
||||||
install_carddav_plugin
|
install_carddav_plugin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ynh_script_progression --message="Updating Roundcube dependencies with Composer..." --weight=30
|
|
||||||
ynh_composer_exec --commands="update --no-dev"
|
|
||||||
|
|
||||||
ynh_script_progression --message="Install javascript dependencies..." --weight=10
|
ynh_script_progression --message="Install javascript dependencies..." --weight=10
|
||||||
update_javascript_deps
|
update_javascript_deps
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue