How to use the tootctl command with yunohost glitchsoc via SSH
My YunoHost server
Hardware: hosted VPS YunoHost version: 4.3.6.3 (stable) I have access to my server : Through SSH | through the webadmin Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no /
Description of my issue
My new glitchsoc instance media storage is growing fast.
I want to apply the tootctl command to remove all cached media older than 5 days but I don’t know how to correctly use tootctl with yunohost glitchsoc via ssh
tootctl media remove --days=5
I’ve tried it with sudo -u glitchsoc RAILS_ENV=production PATH=/opt/rbenv/versions/glitchsoc/bin bin/tootctl media remove //there is no tootctl in this location
as well with sudo -u glitchsoc RAILS_ENV=production PATH=/var/www/glitchsoc/live/bin bin/tootctl media remove
I never used or installed glitchsoc so this message is just random knowledge.
Are there any errors when you run those commands ?
Did YunoHost create a dedicated user for this app ? (This is jist to avoid to run your commands as root)
Is the glitchsoc program in your path or do you have to run a special one where YunoHost installed it ? (Or maybe both exists, maybe ps -ef | grep glitchsoc can help find the right executable).