nixos/gitea: init/migrate db in startup script

(cherry picked from commit 99d8d553da44fb065f9cb8bb54e2e93b85417fab)
This commit is contained in:
Zane van Iperen 2021-08-06 20:01:42 +10:00 committed by Raphael Megzari
parent 9d0618433a
commit bd84f4a6ed
1 changed files with 3 additions and 0 deletions

View File

@ -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