Fix config symlink in Bookwyrm systemd unit

This commit is contained in:
Reinout Meliesie 2025-03-10 20:07:54 +01:00
parent 0ffcf4cafa
commit fbaab723d2
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -15,7 +15,7 @@ with pkgs . kernelmaft ;
[Service]
# 'initdb' fails harmlessly if it has been run on the database before
ExecStartPre=${coreutils-full}/bin/ln -sf ${bookwyrm}/var/lib/bookwyrm/.env /etc/bookwyrm/config.env
ExecStartPre=${coreutils-full}/bin/ln -sf /etc/bookwyrm/config.env /var/lib/bookwyrm/.env
ExecStartPre=${coreutils-full}/bin/ln -sf ${bookwyrm}/var/lib/bookwyrm/VERSION /var/lib/bookwyrm/
ExecStartPre=${bookwyrm}/bin/bookwyrm-env ${python311}/bin/python ${bookwyrm}/lib/python3.11/manage.py migrate
ExecStartPre=-${bookwyrm}/bin/bookwyrm-env ${python311}/bin/python ${bookwyrm}/lib/python3.11/manage.py initdb