From 3c860225e6070dd3bec862e151a4c00e8f5ae4e2 Mon Sep 17 00:00:00 2001 From: Nikkuss Date: Sun, 16 Mar 2025 00:49:03 +0400 Subject: [PATCH] add initdb command --- lib.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.nix b/lib.nix index eeaaefc..43b99a6 100644 --- a/lib.nix +++ b/lib.nix @@ -105,7 +105,7 @@ in script = pkgs.writeShellApplication { name = "run-postgres"; text = '' - if [! -d "${data_dir}"]; then + if [ ! -d "${data_dir}" ]; then echo "Database directory does not exist. Initializing" initdb -D ${data_dir} fi