about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorHugh O'Brien <github@hughobrien.ie>2024-01-03 10:17:06 -0500
committerHugh O'Brien <github@hughobrien.ie>2024-01-03 10:17:06 -0500
commite51c00fb234718085e10dc00609f22e4746c500e (patch)
tree19d291e5ccae7e7e8708f6ab749f224ae8801ca6 /nixos
parent032d45b46c6e39a864570628d9f110454dbf4c66 (diff)
nixos/invidious: Additional fix for user message on 24.05 changes
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/invidious.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/services/web-apps/invidious.nix b/nixos/modules/services/web-apps/invidious.nix
index 32158f9575be0..359aaabfe673a 100644
--- a/nixos/modules/services/web-apps/invidious.nix
+++ b/nixos/modules/services/web-apps/invidious.nix
@@ -155,8 +155,9 @@ let
           to  work, the username used to connect to PostgreSQL must match the database name, that is
           services.invidious.settings.db.user must match services.invidious.settings.db.dbname.
           This is the default since NixOS 24.05. For older systems, it is normally safe to manually set
-          services.invidious.database.user to "invidious" as the new user will be created with permissions
-          for the existing database. `REASSIGN OWNED BY kemal TO invidious;` may also be needed.
+          the user to "invidious" as the new user will be created with permissions
+          for the existing database. `REASSIGN OWNED BY kemal TO invidious;` may also be needed, it can be
+          run as `sudo -u postgres env psql --user=postgres --dbname=invidious -c 'reassign OWNED BY kemal to invidious;'`.
         '';
       }
     ];