1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/matomo_ynh.git synced 2024-09-03 19:45:56 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2020-12-11 14:03:35 +01:00
parent b8f750779f
commit 023c089354
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -81,7 +81,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Upgrading source files..." ynh_script_progression --message="Upgrading source files..."
if [ -z "$final_path/config/config.ini.php" ]; then if [[ ! -f "$final_path/config/config.ini.php" ]]; then
ynh_setup_source --dest_dir="$final_path" ynh_setup_source --dest_dir="$final_path"
else else
# Create a temporary directory # Create a temporary directory
@ -124,7 +124,6 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..."
# Create a dedicated PHP-FPM config # Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=low --footprint=medium --package="$extra_php_dependencies" ynh_add_fpm_config --usage=low --footprint=medium --package="$extra_php_dependencies"
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#================================================= #=================================================
# SPECIFIC UPGRADE # SPECIFIC UPGRADE
@ -135,7 +134,7 @@ ynh_script_progression --message="Installating composer and dependencies..."
ynh_install_composer --phpversion="$phpversion" --workdir="$final_path" ynh_install_composer --phpversion="$phpversion" --workdir="$final_path"
if [ -z "$final_path/config/config.ini.php" ]; then if [[ -f "$final_path/config/config.ini.php" ]]; then
cd "$final_path" cd "$final_path"
ynh_exec_as $app ./console core:update ynh_exec_as $app ./console core:update
fi fi