mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
nixos/mautrix-telegram: run alembic only if available
This commit is contained in:
parent
4713109cae
commit
407d75ae11
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ in {
|
|||
--config='${settingsFile}' \
|
||||
--registration='${registrationFile}'
|
||||
fi
|
||||
|
||||
'' + lib.optionalString (pkgs.mautrix-telegram ? alembic) ''
|
||||
# run automatic database init and migration scripts
|
||||
${pkgs.mautrix-telegram.alembic}/bin/alembic -x config='${settingsFile}' upgrade head
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue