From e27e6400dd7434eb5f621bf7d30cee882ec3994d Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Tue, 5 Dec 2023 10:24:11 -0700 Subject: [PATCH] box,h: switch to ensureDBOwnership --- hosts/box/default.nix | 6 +++--- hosts/h/default.nix | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/hosts/box/default.nix b/hosts/box/default.nix index fea5d77..a9ed914 100644 --- a/hosts/box/default.nix +++ b/hosts/box/default.nix @@ -1088,15 +1088,15 @@ in ensureUsers = [ { name = "nextcloud"; - ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES"; + ensureDBOwnership = true; } { name = "gitea"; - ensurePermissions."DATABASE gitea" = "ALL PRIVILEGES"; + ensureDBOwnership = true; } { name = "invidious"; - ensurePermissions."DATABASE invidious" = "ALL PRIVILEGES"; + ensureDBOwnership = true; } ]; }; diff --git a/hosts/h/default.nix b/hosts/h/default.nix index e813022..44e2bbe 100644 --- a/hosts/h/default.nix +++ b/hosts/h/default.nix @@ -828,15 +828,14 @@ in ensureUsers = [ { name = "synapse_user"; - ensurePermissions."DATABASE synapse" = "ALL PRIVILEGES"; } { name = "gotosocial"; - ensurePermissions."DATABASE gotosocial" = "ALL PRIVILEGES"; + ensureDBOwnership = true; } { name = "syncv3"; - ensurePermissions."DATABASE syncv3" = "ALL PRIVILEGES"; + ensureDBOwnership = true; } ]; };