1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/restic_ynh.git synced 2024-09-03 20:16:22 +02:00

upgrade: try to clean up

This commit is contained in:
Salamandar 2024-05-26 15:24:04 +02:00
parent d8f56bf44b
commit 984281b63e

View file

@ -21,7 +21,20 @@ fi
#================================================= #=================================================
# ENSURE DOWNWARD COMPATIBILITY # ENSURE DOWNWARD COMPATIBILITY
#================================================= #=================================================
#ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
if [ -f "/usr/local/bin/backup-with-${app}" ]; then
ynh_secure_remove --file="/usr/local/bin/backup-with-${app}"
fi
if [ -d "/opt/yunohost/$app" ]; then
mv "/opt/yunohost/$app/"* "/opt/yunohost/$app/".* "$install_dir"
ynh_secure_remove --file="/opt/yunohost/$app/check-restic"
ynh_secure_remove --file="/opt/yunohost/$app/check_method_restic"
ynh_secure_remove --file="/opt/yunohost/$app/restic_check_log_restic"
ynh_secure_remove --file="/opt/yunohost/$app/restic_log_restic"
ynh_secure_remove --file="/opt/yunohost/$app/"
fi
# old versions did not have delimiters in ~/.ssh/config making removal in # old versions did not have delimiters in ~/.ssh/config making removal in
# multi-instance cases break the remaining instances. # multi-instance cases break the remaining instances.