nixos/gitea: init/migrate db in startup script
This commit is contained in:
parent
9d3c98c11f
commit
99d8d553da
1 changed files with 3 additions and 0 deletions
|
@ -522,6 +522,9 @@ in
|
|||
(umask 027; gitea_setup)
|
||||
''}
|
||||
|
||||
# run migrations/init the database
|
||||
${gitea}/bin/gitea migrate
|
||||
|
||||
# update all hooks' binary paths
|
||||
${gitea}/bin/gitea admin regenerate hooks
|
||||
|
||||
|
|
Loading…
Reference in a new issue