mirror of
https://github.com/YunoHost-Apps/roundcube_ynh.git
synced 2024-09-03 20:16:28 +02:00
Merge pull request #65 from YunoHost-Apps/upgrade_composer
Upgrade composer
This commit is contained in:
commit
706f71e4cd
1 changed files with 4 additions and 3 deletions
|
@ -155,6 +155,9 @@ ynh_replace_string "__DBNAME__" $db_name "$rc_conf"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_print_info "Updating dependencies with composer..."
|
ynh_print_info "Updating dependencies with composer..."
|
||||||
|
|
||||||
|
# Upgrade composer itself
|
||||||
|
ynh_install_composer
|
||||||
|
|
||||||
# Check if dependencies need to be updated with composer
|
# Check if dependencies need to be updated with composer
|
||||||
if [ -f "$final_path/composer.json" ]
|
if [ -f "$final_path/composer.json" ]
|
||||||
then
|
then
|
||||||
|
@ -162,10 +165,8 @@ then
|
||||||
else
|
else
|
||||||
# Install composer.json
|
# Install composer.json
|
||||||
cp "$final_path/composer.json-dist" "$final_path/composer.json"
|
cp "$final_path/composer.json-dist" "$final_path/composer.json"
|
||||||
|
|
||||||
# Install composer
|
|
||||||
ynh_install_composer
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE ADDITIONAL PLUGINS
|
# UPGRADE ADDITIONAL PLUGINS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue