Ensure 'images' directory exists in Bookwyrm systemd unit
This commit is contained in:
parent
4ef542df06
commit
7754ddbed1
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue