1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/roundcube_ynh.git synced 2024-09-03 20:16:28 +02:00

fix: only composer update during upgrade

This commit is contained in:
HugoPoi 2024-02-05 15:20:50 +01:00
parent 1ff2ece540
commit 4266a05701
No known key found for this signature in database
GPG key ID: E581734975D3836F
3 changed files with 4 additions and 4 deletions

View file

@ -16,9 +16,8 @@ carddav_version=5.0.1
# DEFINE ALL COMMON FONCTIONS
#=================================================
install_composer() {
setup_composer_deps() {
cp "$install_dir/composer.json-dist" "$install_dir/composer.json"
ynh_install_composer
}
configure_roundcube() {

View file

@ -59,7 +59,8 @@ ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name
# INSTALL DEPENDENCIES AND PLUGINS
#=================================================
ynh_script_progression --message="Installing Roundcube with Composer..." --weight=30
install_composer
setup_composer_deps
ynh_install_composer
ynh_script_progression --message="Configuring Roundcube..." --weight=2
configure_roundcube

View file

@ -83,7 +83,7 @@ ynh_add_nginx_config
# CONFIGURE ROUNDCUBE
#=================================================
ynh_script_progression --message="Installing Roundcube with Composer..." --weight=30
install_composer
setup_composer_deps
ynh_composer_exec --commands="update --no-dev"
ynh_script_progression --message="Configuring Roundcube..." --weight=2