mirror of
https://github.com/YunoHost-Apps/shaarli_ynh.git
synced 2024-09-03 20:26:10 +02:00
fix copy in upgrade
This commit is contained in:
parent
6aa9e5efff
commit
6810532453
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ path_url=$(ynh_normalize_url_path $path_url)
|
|||
# Create a temporary directory
|
||||
tmpdir="$(mktemp -d)"
|
||||
# Backup the config file in the temp dir
|
||||
cp -a "$final_path/data" "$tmpdir/data"
|
||||
cp -a "$final_path/data/" "$tmpdir/data/"
|
||||
|
||||
# Remove the app directory securely
|
||||
ynh_secure_remove "$final_path"
|
||||
|
@ -77,7 +77,7 @@ ynh_secure_remove "$final_path"
|
|||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source "$final_path"
|
||||
sudo cp -a "$tmpdir/data" "${final_path}/data"
|
||||
sudo cp -a "$tmpdir/data/" "${final_path}/data/"
|
||||
sudo rm -Rf "$tmpdir"
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue