Ensure 'images' directory exists in Bookwyrm systemd unit

This commit is contained in:
Reinout Meliesie 2025-03-13 15:07:30 +01:00
parent 4ef542df06
commit 7754ddbed1
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -16,6 +16,7 @@ with pkgs . kernelmaft ;
# 'initdb' fails harmlessly if it has been run on the database before # 'initdb' fails harmlessly if it has been run on the database before
ExecStartPre=${coreutils-full}/bin/ln -sf ${bookwyrm}/var/lib/bookwyrm/VERSION /var/lib/bookwyrm/ ExecStartPre=${coreutils-full}/bin/ln -sf ${bookwyrm}/var/lib/bookwyrm/VERSION /var/lib/bookwyrm/
ExecStartPre=mkdir -p /var/lib/bookwyrm/images
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 migrate
ExecStartPre=-${bookwyrm}/bin/bookwyrm-env ${python311}/bin/python ${bookwyrm}/lib/python3.11/manage.py initdb ExecStartPre=-${bookwyrm}/bin/bookwyrm-env ${python311}/bin/python ${bookwyrm}/lib/python3.11/manage.py initdb
ExecStart=${bookwyrm}/bin/bookwyrm-env ${bookwyrm}/bin/bookwyrm ExecStart=${bookwyrm}/bin/bookwyrm-env ${bookwyrm}/bin/bookwyrm