fix nix code
This commit is contained in:
2
lib.nix
2
lib.nix
@@ -114,7 +114,7 @@ in
|
||||
(lib.concatMapStrings (db: ''
|
||||
echo "Checking presence of database ${db.name}"
|
||||
dbAlreadyExists="$(echo "SELECT 1 AS result FROM pg_database WHERE datname='${db.name}';" | psql --dbname postgres | ${pkgs.gnugrep}/bin/grep -c 'exists = "1"' || true)"
|
||||
echo $dbAlreadyExists
|
||||
echo "$dbAlreadyExists"
|
||||
'') initialDatabases)
|
||||
else
|
||||
"";
|
||||
|
||||
Reference in New Issue
Block a user