mirror of
https://github.com/YunoHost-Apps/droppy_ynh.git
synced 2024-09-03 18:26:27 +02:00
Update upgrade
This commit is contained in:
parent
e238f81cd8
commit
b43746d5de
1 changed files with 3 additions and 0 deletions
|
@ -78,6 +78,9 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=10
|
ynh_script_progression --message="Upgrading source files..." --weight=10
|
||||||
|
|
||||||
|
# Create a temporary directory
|
||||||
|
tmpdir="$(mktemp -d)"
|
||||||
|
|
||||||
cp -a "$final_path/config/config.json" "$tmpdir/config.json"
|
cp -a "$final_path/config/config.json" "$tmpdir/config.json"
|
||||||
# Remove the app directory securely
|
# Remove the app directory securely
|
||||||
ynh_secure_remove --file=$final_path
|
ynh_secure_remove --file=$final_path
|
||||||
|
|
Loading…
Add table
Reference in a new issue