nixos/mautrix-telegram: run alembic only if available

This commit is contained in:
Yureka 2021-12-29 06:05:18 +01:00 committed by Yuka
parent 4713109cae
commit 407d75ae11

View file

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