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

Fix upgrade

This commit is contained in:
yalh76 2019-07-01 22:57:11 +02:00
parent 89533ef06f
commit b263a130e7

View file

@ -81,15 +81,10 @@ path_url=$(ynh_normalize_url_path --path_url=$path_url)
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
# Create a temporary directory
tmpdir="$(mktemp -d)"
# Backup the config file in the temp dir
cp -a "$final_path/config/config.ini.php" "$tmpdir/."
ynh_script_progression --message="Upgrading source files..." --time --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
sudo cp -a "$tmpdir/config.ini.php" "${final_path}/config/."
sudo rm -Rf "$tmpdir"
fi
#=================================================