Compare commits
2 commits
5d76f3d561
...
d0d130d3b1
Author | SHA1 | Date | |
---|---|---|---|
d0d130d3b1 | |||
546aeb599d |
2 changed files with 3 additions and 4 deletions
|
@ -14,9 +14,10 @@ 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/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
|
||||
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
|
||||
|
|
|
@ -29,9 +29,7 @@ mkDerivation {
|
|||
|
||||
pwd
|
||||
|
||||
ls -lAh
|
||||
|
||||
touch write-test
|
||||
ls -lAh /
|
||||
|
||||
runHook postBuild
|
||||
'' ;
|
||||
|
|
Loading…
Add table
Reference in a new issue