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