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 2022-02-07 23:25:46 +01:00
parent a478ef46f3
commit 69d06164d2
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -112,17 +112,8 @@ then
# This condition is only for CI test to go through the upgrade process # This condition is only for CI test to go through the upgrade process
ynh_setup_source --dest_dir="$final_path" ynh_setup_source --dest_dir="$final_path"
else else
# Create a temporary directory
tmpdir="$(mktemp -d)"
cp -a "$final_path/config/config.ini.php" "$tmpdir/config.ini.php"
# Remove the app directory securely
ynh_secure_remove --file=$final_path
# 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" ynh_setup_source --dest_dir="$final_path" --keep="$final_path/config/config.ini.php"
cp -a "$tmpdir/config.ini.php" "$final_path/config/config.ini.php"
# Remove the tmp directory securely
ynh_secure_remove --file="$tmpdir"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"
ynh_exec_as $app php${phpversion} $final_path/console core:update -n ynh_exec_as $app php${phpversion} $final_path/console core:update -n