fix(modules/dgn-console): Only try to create the psql migrate script if postgres is enabled
This commit is contained in:
parent
df8831301f
commit
50368c56dd
1 changed files with 2 additions and 1 deletions
|
@ -71,7 +71,8 @@ in {
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
|
||||||
environment.systemPackages = (with pkgs; [ neovim wget kitty.terminfo ])
|
environment.systemPackages = (with pkgs; [ neovim wget kitty.terminfo ])
|
||||||
++ lib.optional (config.services.postgresql.package != cfg.pg-upgrade-to)
|
++ lib.optional (config.services.postgresql.enable
|
||||||
|
&& config.services.postgresql.package != cfg.pg-upgrade-to)
|
||||||
(pkgs.writeScriptBin "upgrade-pg-cluster" ''
|
(pkgs.writeScriptBin "upgrade-pg-cluster" ''
|
||||||
set -eux
|
set -eux
|
||||||
# XXX it's perhaps advisable to stop all services that depend on postgresql
|
# XXX it's perhaps advisable to stop all services that depend on postgresql
|
||||||
|
|
Loading…
Reference in a new issue