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
d8238ba6a1
commit
881e3736d3
1 changed files with 10 additions and 3 deletions
|
@ -100,7 +100,7 @@ then
|
|||
|
||||
# Remove the tmp directory securely
|
||||
ynh_secure_remove --file="$tmpdir"
|
||||
|
||||
|
||||
# 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"
|
||||
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..."
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
|
||||
ynh_install_composer --phpversion="$phpversion" --workdir="$final_path"
|
||||
|
||||
if [[ -f "$final_path/config/config.ini.php" ]]; then
|
||||
php$phpversion $final_path/console core:update
|
||||
# if [[ -f "$final_path/config/config.ini.php" ]]; then
|
||||
# php$phpversion $final_path/console core:update -n
|
||||
# fi
|
||||
|
||||
|
||||
php$phpversion $final_path/console core:update -n
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue