1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/transmission_ynh.git synced 2024-09-04 01:46:12 +02:00

Update upgrade: rm on a non-existing file miserably crash the upgrade

This commit is contained in:
Alexandre Aubin 2023-12-11 13:42:08 +01:00 committed by GitHub
parent 064214c930
commit 727aabfe0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,8 +68,8 @@ ynh_script_progression --message="Adding multimedia directories..." --weight=3
# Remove possibly dangling symlinks created before the /home/yunohost.transmission -> /home/yunohost.app/transmission transition
# Use rm because ynh_secure_remove fails on dangling symlinks, see https://github.com/YunoHost/issues/issues/2253...
rm "$MEDIA_DIRECTORY/share/Torrents"
rm "$MEDIA_DIRECTORY/share/Torrent to download"
rm "$MEDIA_DIRECTORY/share/Torrents" || true
rm "$MEDIA_DIRECTORY/share/Torrent to download" || true
ynh_multimedia_build_main_dir