From bd84f4a6ed77c00db5a9330a3ed0ad7cea2d3e6f Mon Sep 17 00:00:00 2001 From: Zane van Iperen Date: Fri, 6 Aug 2021 20:01:42 +1000 Subject: [PATCH] nixos/gitea: init/migrate db in startup script (cherry picked from commit 99d8d553da44fb065f9cb8bb54e2e93b85417fab) --- nixos/modules/services/misc/gitea.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/misc/gitea.nix b/nixos/modules/services/misc/gitea.nix index 84fa9bfb6b5..4e8bb01e3d6 100644 --- a/nixos/modules/services/misc/gitea.nix +++ b/nixos/modules/services/misc/gitea.nix @@ -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