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:
parent
b8f750779f
commit
023c089354
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue