Add manage.py initdb as ExecStartPre in Bookwyrm systemd unit
This commit is contained in:
parent
2c4e099347
commit
4552db0453
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ with pkgs . kernelmaft ;
|
|||
|
||||
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
|
||||
ExecStart=${bookwyrm}/bin/bookwyrm-env ${bookwyrm}/bin/bookwyrm
|
||||
|
||||
WorkingDirectory=/var/lib/bookwyrm
|
||||
|
|
Loading…
Add table
Reference in a new issue