mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
nixos/mautrix-telegram: run alembic only if available
This commit is contained in:
parent
4713109cae
commit
407d75ae11
@ -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 New Issue
Block a user