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 2021-05-18 10:41:49 +02:00
parent d8238ba6a1
commit 881e3736d3
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -100,7 +100,7 @@ then
# Remove the tmp directory securely # Remove the tmp directory securely
ynh_secure_remove --file="$tmpdir" ynh_secure_remove --file="$tmpdir"
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
#ynh_setup_source --dest_dir="$final_path" --keep="$final_path/config/config.ini.php" #ynh_setup_source --dest_dir="$final_path" --keep="$final_path/config/config.ini.php"
fi fi
@ -137,10 +137,17 @@ ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencie
#================================================= #=================================================
ynh_script_progression --message="Installating composer and dependencies..." ynh_script_progression --message="Installating composer and dependencies..."
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_install_composer --phpversion="$phpversion" --workdir="$final_path" ynh_install_composer --phpversion="$phpversion" --workdir="$final_path"
if [[ -f "$final_path/config/config.ini.php" ]]; then # if [[ -f "$final_path/config/config.ini.php" ]]; then
php$phpversion $final_path/console core:update # php$phpversion $final_path/console core:update -n
# fi
php$phpversion $final_path/console core:update -n
fi fi
#================================================= #=================================================