Create runtime dir when running Bookwyrm systemd unit

This commit is contained in:
Reinout Meliesie 2025-03-07 13:12:22 +01:00
parent 2a0711c842
commit a3e9cf0296
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -15,6 +15,7 @@ with pkgs . kernelmaft ;
[Service]
ExecStartPre=${coreutils-full}/bin/ln -sf ${bookwyrm}/var/lib/bookwyrm/VERSION /var/lib/bookwyrm/
ExecStartPre=${coreutils-full}/bin/mkdir /run/bookwyrm
ExecStart=${bookwyrm}/bin/bookwyrm
WorkingDirectory=/var/lib/bookwyrm