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

cleanup more in upgrade

This commit is contained in:
Salamandar 2024-05-26 15:48:15 +02:00
parent 0687aa0d04
commit 62f213a844

View file

@ -27,6 +27,10 @@ if [ -f "/usr/local/bin/backup-with-${app}" ]; then
ynh_secure_remove --file="/usr/local/bin/backup-with-${app}"
fi
if [ -f "/usr/local/bin/$app" ]; then
ynh_secure_remove --file="/usr/local/bin/$app"
fi
if [ -d "/opt/yunohost/$app" ]; then
mv "/opt/yunohost/$app/"* "$install_dir"
ynh_delete_file_checksum --file="/opt/yunohost/$app/check-restic"