From 7b0cbc31829dbff95b6c14373755d321c133277f Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 9 Dec 2024 12:57:12 +0100 Subject: [PATCH] postgresql: nix fmt --- clanModules/postgresql/default.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/clanModules/postgresql/default.nix b/clanModules/postgresql/default.nix index 73690a0b7..49a98b37e 100644 --- a/clanModules/postgresql/default.nix +++ b/clanModules/postgresql/default.nix @@ -204,12 +204,10 @@ in if [[ -e "${current}" ]]; then ( - ${ - lib.optionalString (db.restore.stopOnRestore != [ ]) '' - systemctl stop ${builtins.toString db.restore.stopOnRestore} - trap "systemctl start ${builtins.toString db.restore.stopOnRestore}" EXIT - '' - } + ${lib.optionalString (db.restore.stopOnRestore != [ ]) '' + systemctl stop ${builtins.toString db.restore.stopOnRestore} + trap "systemctl start ${builtins.toString db.restore.stopOnRestore}" EXIT + ''} mkdir -p "${folder}" if runuser -u postgres -- psql -d postgres -c "SELECT 1 FROM pg_database WHERE datname = '${db.name}'" | grep -q 1; then