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:
parent
89533ef06f
commit
b263a130e7
1 changed files with 2 additions and 7 deletions
|
@ -81,15 +81,10 @@ path_url=$(ynh_normalize_url_path --path_url=$path_url)
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
# Create a temporary directory
|
ynh_script_progression --message="Upgrading source files..." --time --weight=1
|
||||||
tmpdir="$(mktemp -d)"
|
|
||||||
# Backup the config file in the temp dir
|
|
||||||
cp -a "$final_path/config/config.ini.php" "$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"
|
ynh_setup_source --dest_dir="$final_path"
|
||||||
sudo cp -a "$tmpdir/config.ini.php" "${final_path}/config/."
|
|
||||||
sudo rm -Rf "$tmpdir"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue