1.3 upgrade instruction
Install poetry with the funkwhale user and add poetry to the path :
-
Loggin as funkwhale user
su funkwhale
-
Install Poetry. Follow the steps in this wizard to set it up.
curl -sSL https://install.python-poetry.org | python3 -
-
Add Poetry to your $PATH. This allows you to use poetry commands.
export "PATH=$HOME/.local/bin:$PATH" >> ~/.bashrc
echo 'export "PATH=$HOME/.local/bin:$PATH"' >> ~/.bashrc
- Set up poetry in your /srv/funkwhale/api directory.
cd /srv/funkwhale/api
poetry install
Update systemd files :
- Download the sample unit files from Funkwhale.
FUNKWHALE_VERSION=1.3
sudo curl -L -o "/etc/systemd/system/funkwhale.target" "https://dev.funkwhale.audio/funkwhale/funkwhale/raw/$FUNKWHALE_VERSION/deploy/funkwhale.target"
sudo curl -L -o "/etc/systemd/system/funkwhale-server.service" "https://dev.funkwhale.audio/funkwhale/funkwhale/raw/$FUNKWHALE_VERSION/deploy/funkwhale-server.service"
sudo curl -L -o "/etc/systemd/system/funkwhale-worker.service" "https://dev.funkwhale.audio/funkwhale/funkwhale/raw/$FUNKWHALE_VERSION/deploy/funkwhale-worker.service"
sudo curl -L -o "/etc/systemd/system/funkwhale-beat.service" "https://dev.funkwhale.audio/funkwhale/funkwhale/raw/$FUNKWHALE_VERSION/deploy/funkwhale-beat.service"
-
Reload systemd to register the new services.
sudo systemctl daemon-reload
-
Start all Funkwhale services.
sudo systemctl start funkwhale.target
-
Enable the services. Systemd can then start the services after a reboot.
sudo systemctl enable --now funkwhale.target
That’s it! systemd keeps these services running and starts them up in the correct order after a reboot.