1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kiwiirc_ynh.git synced 2024-09-03 19:35:59 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2020-10-11 16:28:28 +02:00
parent 3855f9146f
commit 4630e332fc

View file

@ -55,7 +55,7 @@ then
tmpdir="$(mktemp -d)"
# Backup the config file in the temp dir
cp -a "$final_path/config.json" "$tmpdir/config.json"
cp -a "$final_path/static/config.json" "$tmpdir/config.json"
# Remove the app directory securely
ynh_secure_remove --file=$final_path
@ -64,7 +64,7 @@ then
ynh_setup_source --dest_dir=$final_path
#Copy the admin saved settings from tmp directory to final path
cp -a "$tmpdir/config.json" "$final_path/config.json"
cp -a "$tmpdir/config.json" "$final_path/static/config.json"
# Remove the tmp directory securely
ynh_secure_remove --file="$tmpdir"