Closed HugoPoi closed 4 years ago
idk, it was like that when I started to work on that package. Maybe not the best way to manage the upgrade...
Well I reread the core.
If you think that there is better way to manage that, feel free to do a PR ;)
Due to this behavior, the upgrade is broken. Now the script using the /tmp directory. So the script assume you have enough space to copy the entire medias attachments to /tmp. Me > working on it.
My instance with one user
admin@home:/var/www/mastodon/live$ du -sh public/system/
24G public/system/
lol too much media...
I will launch a sudo -u mastodon RAILS_ENV=production bin/tootctl media remove
but I'm pretty sure I have done this sometimes ago
du -sh public/system/
10G public/system/
# Still 10GB my uploaded content + last 7 days of my subsciptions
Is the
rsync -a
necessary in place of amv
because it's currently very slow to do a full copy of all medias and delete the source 3 lines after ?https://github.com/YunoHost-Apps/mastodon_ynh/blob/b9086682d2d7762d2882fff2cda4f5dceb73e32b/scripts/upgrade#L172-L178
For example I upgrade my instance, I'm alone on it. It took
action [2585.1] executed in 2490.312s