fix nix code

This commit is contained in:
2025-03-17 16:03:58 +04:00
parent d5c171836a
commit f7169da0cf

View File

@@ -114,7 +114,7 @@ in
(lib.concatMapStrings (db: '' (lib.concatMapStrings (db: ''
echo "Checking presence of database ${db.name}" 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)" 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) '') initialDatabases)
else else
""; "";